emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX export, problem with quotes
@ 2013-12-25 17:29 Thomas S. Dye
  2013-12-26 11:45 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas S. Dye @ 2013-12-25 17:29 UTC (permalink / raw)
  To: Org-mode

Aloha all,

I'm having a problem with exporting quotes.  I have the #+OPTIONS ':t.

This input in the Org mode file:

"[l]ater walls ..."

produces this in the tex file (open quote wrong, close quote OK):
"[l]ater walls ...''

I'm expecting this in the tex file:
''[l]ater walls ...''

I'm using Org-mode version 8.2.4 (release_8.2.4-329-g149eaf @
/Users/dk/.emacs.d/src/org-mode/lisp/)

All the best,
Tom

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com

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

* Re: LaTeX export, problem with quotes
  2013-12-25 17:29 LaTeX export, problem with quotes Thomas S. Dye
@ 2013-12-26 11:45 ` Nicolas Goaziou
  2013-12-26 16:49   ` Thomas S. Dye
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2013-12-26 11:45 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: Org-mode

Hello,

tsd@tsdye.com (Thomas S. Dye) writes:

> I'm having a problem with exporting quotes.  I have the #+OPTIONS ':t.
>
> This input in the Org mode file:
>
> "[l]ater walls ..."
>
> produces this in the tex file (open quote wrong, close quote OK):
> "[l]ater walls ...''
>
> I'm expecting this in the tex file:
> ''[l]ater walls ...''

I fixed it in maint. Thank you for reporting it.

Nevertheless, there will always be failing cases in smart quote
detection (see `org-export-smart-quotes-regexps').


Regards,

-- 
Nicolas Goaziou

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

* Re: LaTeX export, problem with quotes
  2013-12-26 11:45 ` Nicolas Goaziou
@ 2013-12-26 16:49   ` Thomas S. Dye
  2013-12-26 17:02     ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas S. Dye @ 2013-12-26 16:49 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org-mode

Aloha Nicolas,

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> tsd@tsdye.com (Thomas S. Dye) writes:
>
>> I'm having a problem with exporting quotes.  I have the #+OPTIONS ':t.
>>
>> This input in the Org mode file:
>>
>> "[l]ater walls ..."
>>
>> produces this in the tex file (open quote wrong, close quote OK):
>> "[l]ater walls ...''
>>
>> I'm expecting this in the tex file:
>> ''[l]ater walls ...''
>
> I fixed it in maint. Thank you for reporting it.

I'm getting the same incorrect result as before with:

Org-mode version 8.2.4 (release_8.2.4-391-g954168 @ /Users/dk/.emacs.d/src/org-mode/lisp/)

>
> Nevertheless, there will always be failing cases in smart quote
> detection (see `org-export-smart-quotes-regexps').

I can't comprehend the regular expression(s) there, unfortunately. If it
is the case that there will always be failing cases, and my goal is to
create a stable piece of reproducible research, would you recommend an
approach that sets org-entities-user appropriately at the file-local
level, or something else?

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

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

* Re: LaTeX export, problem with quotes
  2013-12-26 16:49   ` Thomas S. Dye
@ 2013-12-26 17:02     ` Nicolas Goaziou
  2013-12-26 17:47       ` Thomas S. Dye
  2013-12-26 17:57       ` Thomas S. Dye
  0 siblings, 2 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2013-12-26 17:02 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: Org-mode

tsd@tsdye.com (Thomas S. Dye) writes:

> I'm getting the same incorrect result as before with:
>
> Org-mode version 8.2.4 (release_8.2.4-391-g954168 @
> /Users/dk/.emacs.d/src/org-mode/lisp/)

Did you reload Org? I cannot reproduce the problem anymore.

>> Nevertheless, there will always be failing cases in smart quote
>> detection (see `org-export-smart-quotes-regexps').
>
> I can't comprehend the regular expression(s) there, unfortunately. If it
> is the case that there will always be failing cases, and my goal is to
> create a stable piece of reproducible research, would you recommend an
> approach that sets org-entities-user appropriately at the file-local
> level, or something else?

I mean that choosing between an opening quote, a closing quote, or
nothing is done with a regexp. It cannot cover all cases, and some
tricky situations will fool smart quote mechanism.

If that happens, and if `org-export-smart-quotes-regexps' cannot be
improved to handle the situation consistently, you will have to specify
LaTeX quote code manually (e.g. with an export snippet, or an entity).

I cannot see the link with reproducible research, though.


Regards,

-- 
Nicolas Goaziou

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

* Re: LaTeX export, problem with quotes
  2013-12-26 17:02     ` Nicolas Goaziou
@ 2013-12-26 17:47       ` Thomas S. Dye
  2013-12-26 17:57       ` Thomas S. Dye
  1 sibling, 0 replies; 6+ messages in thread
From: Thomas S. Dye @ 2013-12-26 17:47 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org-mode

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> tsd@tsdye.com (Thomas S. Dye) writes:
>
>> I'm getting the same incorrect result as before with:
>>
>> Org-mode version 8.2.4 (release_8.2.4-391-g954168 @
>> /Users/dk/.emacs.d/src/org-mode/lisp/)
>
> Did you reload Org? I cannot reproduce the problem anymore.

Hmm, "later" and "{l}ater" both work for me, but "[l]ater" and "(l)ater"
both fail.  I'm exporting asynchronously.

> I mean that choosing between an opening quote, a closing quote, or
> nothing is done with a regexp. It cannot cover all cases, and some
> tricky situations will fool smart quote mechanism.
>
> If that happens, and if `org-export-smart-quotes-regexps' cannot be
> improved to handle the situation consistently, you will have to specify
> LaTeX quote code manually (e.g. with an export snippet, or an entity).
>
> I cannot see the link with reproducible research, though.

I'm perhaps too wary of regressions here.

All the best,
Tom

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com

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

* Re: LaTeX export, problem with quotes
  2013-12-26 17:02     ` Nicolas Goaziou
  2013-12-26 17:47       ` Thomas S. Dye
@ 2013-12-26 17:57       ` Thomas S. Dye
  1 sibling, 0 replies; 6+ messages in thread
From: Thomas S. Dye @ 2013-12-26 17:57 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org-mode

Aloha Nicolas,

Ah, I see what's happening now. I've set up asynchronous export to use
the Org mode that ships with Emacs, rather than the one from the git
repo. Of course, that doesn't track your changes.

In this case, where many potential users of my reproducible research
document aren't using the latest Org mode, a file-specific
org-entities-user entry looks like the best solution.

Thanks for your patience as I puzzled this out online.

All the best,
Tom

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> tsd@tsdye.com (Thomas S. Dye) writes:
>
>> I'm getting the same incorrect result as before with:
>>
>> Org-mode version 8.2.4 (release_8.2.4-391-g954168 @
>> /Users/dk/.emacs.d/src/org-mode/lisp/)
>
> Did you reload Org? I cannot reproduce the problem anymore.
>
>>> Nevertheless, there will always be failing cases in smart quote
>>> detection (see `org-export-smart-quotes-regexps').
>>
>> I can't comprehend the regular expression(s) there, unfortunately. If it
>> is the case that there will always be failing cases, and my goal is to
>> create a stable piece of reproducible research, would you recommend an
>> approach that sets org-entities-user appropriately at the file-local
>> level, or something else?
>
> I mean that choosing between an opening quote, a closing quote, or
> nothing is done with a regexp. It cannot cover all cases, and some
> tricky situations will fool smart quote mechanism.
>
> If that happens, and if `org-export-smart-quotes-regexps' cannot be
> improved to handle the situation consistently, you will have to specify
> LaTeX quote code manually (e.g. with an export snippet, or an entity).
>
> I cannot see the link with reproducible research, though.
>
>
> Regards,

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com

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

end of thread, other threads:[~2013-12-26 17:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-25 17:29 LaTeX export, problem with quotes Thomas S. Dye
2013-12-26 11:45 ` Nicolas Goaziou
2013-12-26 16:49   ` Thomas S. Dye
2013-12-26 17:02     ` Nicolas Goaziou
2013-12-26 17:47       ` Thomas S. Dye
2013-12-26 17:57       ` Thomas S. Dye

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