emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug in org-latex (6.34c)?
@ 2010-01-23 11:39 Sven Bretfeld
  2010-01-23 16:23 ` Carsten Dominik
  0 siblings, 1 reply; 7+ messages in thread
From: Sven Bretfeld @ 2010-01-23 11:39 UTC (permalink / raw)
  To: emacs-org

Hello fellows

org-latex-export sticks to the header \usepackage[utf8]{inputenc},
albeit this is customized to \usepackage[utf8x]{inputenc}.
                                         ^^^^^
I added the "x" in all customizable classes as well as my own classes. I
also tried to add ("utf8" . "utf8x") to org-export-latex-inputenc-alist.
No improvement. The resulting tex-file still lacks the "x". 

This was still working in 6.33.

Greetings,

Sven

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

* Re: Bug in org-latex (6.34c)?
  2010-01-23 11:39 Bug in org-latex (6.34c)? Sven Bretfeld
@ 2010-01-23 16:23 ` Carsten Dominik
  2010-01-23 18:48   ` Sven Bretfeld
  2010-01-23 23:26   ` Sven Bretfeld
  0 siblings, 2 replies; 7+ messages in thread
From: Carsten Dominik @ 2010-01-23 16:23 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: emacs-org


On Jan 23, 2010, at 12:39 PM, Sven Bretfeld wrote:

> Hello fellows
>
> org-latex-export sticks to the header \usepackage[utf8]{inputenc},
> albeit this is customized to \usepackage[utf8x]{inputenc}.
>                                         ^^^^^
> I added the "x" in all customizable classes as well as my own  
> classes. I
> also tried to add ("utf8" . "utf8x") to org-export-latex-inputenc- 
> alist.


This works for me:

(setq org-export-latex-inputenc-alist '(("utf8" . "utf8x)))

Is this what you have?  Note the extra pair of parenthesis.....

> No improvement. The resulting tex-file still lacks the "x".
>
> This was still working in 6.33.

I can make a variable to turn this automatic fixing of inputenc off, so
that the configured value in org-export-latex-classes will always be  
used....

- Carsten

>
> Greetings,
>
> Sven
>
>
> _______________________________________________
> 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

- Carsten

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

* Re: Bug in org-latex (6.34c)?
  2010-01-23 16:23 ` Carsten Dominik
@ 2010-01-23 18:48   ` Sven Bretfeld
  2010-01-23 23:26   ` Sven Bretfeld
  1 sibling, 0 replies; 7+ messages in thread
From: Sven Bretfeld @ 2010-01-23 18:48 UTC (permalink / raw)
  To: Sven Bretfeld, emacs-org

Hi Carsten

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

> This works for me:
>
> (setq org-export-latex-inputenc-alist '(("utf8" . "utf8x)))

Yes, that's working. Thank you very much.

> Is this what you have? 

I set that function via customize. I think there was only one set og
parenthesis. 

> I can make a variable to turn this automatic fixing of inputenc off, so
> that the configured value in org-export-latex-classes will always be
> used....

So, it's not a bug, it'a a feature. At least it should be documented in
a more accessible place. All the predefined export classes contain the
\usepackage[utf8]{inputenc} header. This suggests that having that line
or changing it would have any effect. 

Thanks again and greetings,

Sven

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

* Re: Bug in org-latex (6.34c)?
  2010-01-23 16:23 ` Carsten Dominik
  2010-01-23 18:48   ` Sven Bretfeld
@ 2010-01-23 23:26   ` Sven Bretfeld
  2010-01-24  9:55     ` Carsten Dominik
  1 sibling, 1 reply; 7+ messages in thread
From: Sven Bretfeld @ 2010-01-23 23:26 UTC (permalink / raw)
  To: emacs-org

Hi Carsten

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

> This works for me:
>
> (setq org-export-latex-inputenc-alist '(("utf8" . "utf8x)))

Yes, that's working. Thank you very much.

> Is this what you have? 

I set that function via customize. I think there was only one set og
parenthesis. 

> I can make a variable to turn this automatic fixing of inputenc off, so
> that the configured value in org-export-latex-classes will always be
> used....

So, it's not a bug, it'a a feature. At least it should be documented in
a more accessible place. All the predefined export classes contain the
\usepackage[utf8]{inputenc} header. This suggests that having that line
or changing it would have any effect. 

Thanks again and greetings,

Sven

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

* Re: Bug in org-latex (6.34c)?
  2010-01-23 23:26   ` Sven Bretfeld
@ 2010-01-24  9:55     ` Carsten Dominik
  2010-01-24 10:24       ` Carsten Dominik
  0 siblings, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2010-01-24  9:55 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: emacs-org


On Jan 24, 2010, at 12:26 AM, Sven Bretfeld wrote:

> Hi Carsten
>
> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>> This works for me:
>>
>> (setq org-export-latex-inputenc-alist '(("utf8" . "utf8x)))
>
> Yes, that's working. Thank you very much.
>
>> Is this what you have?
>
> I set that function via customize. I think there was only one set og
> parenthesis.
>
>> I can make a variable to turn this automatic fixing of inputenc  
>> off, so
>> that the configured value in org-export-latex-classes will always be
>> used....
>
> So, it's not a bug, it'a a feature. At least it should be documented  
> in
> a more accessible place. All the predefined export classes contain the
> \usepackage[utf8]{inputenc} header. This suggests that having that  
> line
> or changing it would have any effect.

Maybe we should redefine the classes to use

\usepackage[BUFFERCODING]{inputenc}

and the only modify the coding system if it is the special value  
BUFFERCODING, but not if the user has specified one explicitly......

- Carsten

>
> Thanks again and greetings,
>
> Sven
>
>
> _______________________________________________
> 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

- Carsten

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

* Re: Bug in org-latex (6.34c)?
  2010-01-24  9:55     ` Carsten Dominik
@ 2010-01-24 10:24       ` Carsten Dominik
  2010-01-24 11:32         ` Sven Bretfeld
  0 siblings, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2010-01-24 10:24 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: emacs-org Mode


On Jan 24, 2010, at 10:55 AM, Carsten Dominik wrote:

>
> On Jan 24, 2010, at 12:26 AM, Sven Bretfeld wrote:
>
>> Hi Carsten
>>
>> Carsten Dominik <carsten.dominik@gmail.com> writes:
>>
>>> This works for me:
>>>
>>> (setq org-export-latex-inputenc-alist '(("utf8" . "utf8x)))
>>
>> Yes, that's working. Thank you very much.
>>
>>> Is this what you have?
>>
>> I set that function via customize. I think there was only one set og
>> parenthesis.
>>
>>> I can make a variable to turn this automatic fixing of inputenc  
>>> off, so
>>> that the configured value in org-export-latex-classes will always be
>>> used....
>>
>> So, it's not a bug, it'a a feature. At least it should be  
>> documented in
>> a more accessible place. All the predefined export classes contain  
>> the
>> \usepackage[utf8]{inputenc} header. This suggests that having that  
>> line
>> or changing it would have any effect.
>
> Maybe we should redefine the classes to use
>
> \usepackage[BUFFERCODING]{inputenc}
>
> and the only modify the coding system if it is the special value  
> BUFFERCODING, but not if the user has specified one explicitly......

OK, when I can push next, it will work like this:

When the class defines

\usepackage[AUTO]{inputenc}

then Org will set the coding system automatically.  If the class  
specifies
an explicit coding system like

\usepackage[utf8]{inputenc}

it will be left alone.  This is a lot more predictable that what
I had before, thanks for making me change this.

- Carsten


>
> - Carsten
>
>>
>> Thanks again and greetings,
>>
>> Sven
>>
>>
>> _______________________________________________
>> 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
>
> - Carsten
>
>
>

- Carsten

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

* Re: Bug in org-latex (6.34c)?
  2010-01-24 10:24       ` Carsten Dominik
@ 2010-01-24 11:32         ` Sven Bretfeld
  0 siblings, 0 replies; 7+ messages in thread
From: Sven Bretfeld @ 2010-01-24 11:32 UTC (permalink / raw)
  To: emacs-org Mode

Carsten Dominik <dominik@uva.nl> writes:

> When the class defines
>
> \usepackage[AUTO]{inputenc}
>
> then Org will set the coding system automatically.  If the class
> specifies
> an explicit coding system like
>
> \usepackage[utf8]{inputenc}
>
> it will be left alone.  This is a lot more predictable that what
> I had before, thanks for making me change this.

That seems the best way. Thanks again.

Greetings

Sven

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

end of thread, other threads:[~2010-01-24 11:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-23 11:39 Bug in org-latex (6.34c)? Sven Bretfeld
2010-01-23 16:23 ` Carsten Dominik
2010-01-23 18:48   ` Sven Bretfeld
2010-01-23 23:26   ` Sven Bretfeld
2010-01-24  9:55     ` Carsten Dominik
2010-01-24 10:24       ` Carsten Dominik
2010-01-24 11:32         ` Sven Bretfeld

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