ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt with Emacs
@ 2014-01-10 18:34 Fabrice
  0 siblings, 0 replies; 15+ messages in thread
From: Fabrice @ 2014-01-10 18:34 UTC (permalink / raw)
  To: ntg-context

Hello,
I use Emacs as an editor and I compile my files with LuaLaTeX by adding 
the following lines to the end of the file:

%%% Local Variables:
%%% Mode: LaTeX
%%% LaTeX-command "LuaLaTeX-shell-escape"
%%% End:

I discovered ConTeXt, and I would like to know which lines to add to the 
end of files.
Thank you.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: ConTeXt with Emacs
  2014-01-10 23:16         ` Fabrice Couvreur
  2014-01-10 23:36           ` Fabrice Couvreur
@ 2014-01-11  0:04           ` Peter Münster
  1 sibling, 0 replies; 15+ messages in thread
From: Peter Münster @ 2014-01-11  0:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Jan 11 2014, Fabrice Couvreur wrote:

> Sorry Peter, but I do not understand what you mean by "So just pressing up".

"(savehist-mode 1)" is your friend ... ;)

-- 
           Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: ConTeXt with Emacs
  2014-01-10 23:16         ` Fabrice Couvreur
@ 2014-01-10 23:36           ` Fabrice Couvreur
  2014-01-11  0:04           ` Peter Münster
  1 sibling, 0 replies; 15+ messages in thread
From: Fabrice Couvreur @ 2014-01-10 23:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1051 bytes --]

oops !
I just realized.
Sorry for this useless post.


2014/1/11 Fabrice Couvreur <fabrice1.couvreur@gmail.com>

> Sorry Peter, but I do not understand what you mean by "So just pressing
> up".
>
>
>
> 2014/1/10 Peter Münster <pmlists@free.fr>
>
>> On Fri, Jan 10 2014, Fabrice Couvreur wrote:
>>
>> > Only a second C-c C-c does not allow me to have 'Command : (default
>> View)'.
>> > How ?
>>
>> http://www.ntg.nl/pipermail/ntg-context/2013/075877.html
>>
>> --
>>            Peter
>>
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>>
>> ___________________________________________________________________________________
>>
>
>

[-- Attachment #1.2: Type: text/html, Size: 2796 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: ConTeXt with Emacs
  2014-01-10 22:58       ` Peter Münster
@ 2014-01-10 23:16         ` Fabrice Couvreur
  2014-01-10 23:36           ` Fabrice Couvreur
  2014-01-11  0:04           ` Peter Münster
  0 siblings, 2 replies; 15+ messages in thread
From: Fabrice Couvreur @ 2014-01-10 23:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 891 bytes --]

Sorry Peter, but I do not understand what you mean by "So just pressing up".



2014/1/10 Peter Münster <pmlists@free.fr>

> On Fri, Jan 10 2014, Fabrice Couvreur wrote:
>
> > Only a second C-c C-c does not allow me to have 'Command : (default
> View)'.
> > How ?
>
> http://www.ntg.nl/pipermail/ntg-context/2013/075877.html
>
> --
>            Peter
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2311 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: ConTeXt with Emacs
  2014-01-10 22:47     ` Fabrice Couvreur
@ 2014-01-10 22:58       ` Peter Münster
  2014-01-10 23:16         ` Fabrice Couvreur
  0 siblings, 1 reply; 15+ messages in thread
From: Peter Münster @ 2014-01-10 22:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Jan 10 2014, Fabrice Couvreur wrote:

> Only a second C-c C-c does not allow me to have 'Command : (default View)'.
> How ?

http://www.ntg.nl/pipermail/ntg-context/2013/075877.html

-- 
           Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: ConTeXt with Emacs
  2014-01-10 20:40   ` Fabrice Couvreur
@ 2014-01-10 22:52     ` Hans Hagen
  0 siblings, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2014-01-10 22:52 UTC (permalink / raw)
  To: ntg-context

On 1/10/2014 9:40 PM, Fabrice Couvreur wrote:
> Thank you for the answers.
> If I summarize, we can not comment on the files at the end because
> everything that comes after \stoptext is ignored.

ignored by context, so you can put there whatever you want


> I was already using the command line 'contest file.tex.
> Or Set ConTeXt as my default TeX flavor in the AUCTEX settings.
>
>
> 2014/1/10 Willi Egger <context@boede.nl <mailto:context@boede.nl>>
>
>     in the simplest case a Context document consists of
>
>     \starttext
>     Your text
>     \stoptext
>
>     (commented) lines added after \stoptext are ignored.
>
>     Willi
>     On 10 jan. 2014, at 19:52, Fabrice Couvreur
>     <fabrice1.couvreur@gmail.com <mailto:fabrice1.couvreur@gmail.com>>
>     wrote:
>
>>     Hello,
>>     I use Emacs as an editor and I compile my files with LuaLaTeX by
>>     adding the following lines to the end of the file:
>>
>>     %%% Local Variables:
>>     %%% Mode: LaTeX
>>     %%% LaTeX-command "LuaLaTeX-shell-escape"
>>     %%% End:
>>
>>     I discovered ConTeXt, and I would like to know which lines to add
>>     to the end of files.
>>     Thank you.
>>     ___________________________________________________________________________________
>>     If your question is of interest to others as well, please add an
>>     entry to the Wiki!
>>
>>     maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> /
>>     http://www.ntg.nl/mailman/listinfo/ntg-context
>>     webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>>     archive  : http://foundry.supelec.fr/projects/contextrev/
>>     wiki     : http://contextgarden.net
>>     ___________________________________________________________________________________
>
>
>     ___________________________________________________________________________________
>     If your question is of interest to others as well, please add an
>     entry to the Wiki!
>
>     maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> /
>     http://www.ntg.nl/mailman/listinfo/ntg-context
>     webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>     archive  : http://foundry.supelec.fr/projects/contextrev/
>     wiki     : http://contextgarden.net
>     ___________________________________________________________________________________
>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: ConTeXt with Emacs
  2014-01-10 22:08   ` Mica Semrick
@ 2014-01-10 22:47     ` Fabrice Couvreur
  2014-01-10 22:58       ` Peter Münster
  0 siblings, 1 reply; 15+ messages in thread
From: Fabrice Couvreur @ 2014-01-10 22:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3189 bytes --]

Thank you all,
C-c C-c displayed  'Command : (default ConTeXt)' then  RET, and the file is
compiled.
Only a second C-c C-c does not allow me to have  'Command : (default View)'.
How ?


2014/1/10 Mica Semrick <paperdigits@gmail.com>

> my .emacs looks like this:
>
> ;; Open in ConTeXt mode
> (add-hook 'LaTeX-mode-hook 'TeX-PDF-mode) ;; AucTeX turn on PDF mode by
> default
> (add-hook 'LaTeX-mode-hook (function turn-on-reftex)) ;; Turn on RefTeX
> when AucTeX loads
> (add-hook 'ConTeXt-mode-hook 'yas/minor-mode-on) ;; Turn on YaSnippet
> minor mode in ConTeXt-en-mode
> (add-hook 'ConTeXt-mode-hook (function turn-on-reftex)) ;; Turn on RefTeX
> when AucTeX loads
> (setq TeX-default-mode 'context-mode) ;; Make context-mode the default
> tex-mode
> (setq reftex-plug-into-AUCTeX t) ;; Turn on RefTeX when AucTeX loads
> (add-hook 'TeX-mode-hook '(lambda () (TeX-fold-mode 1)))
>
> ;; Add option for MKIV and make it the default for C-c C-c
>
> (add-hook 'ConTeXt-mode-hook (lambda()
> (add-to-list 'TeX-command-list '("ConTeXt MKIV" "context %t" TeX-run-TeX
> nil (context-mode) ))
> (setq TeX-command-default "ConTeXt MKIV")
> (setq TeX-save-query  nil )
> ))
>
>
>
>
> On Fri, Jan 10, 2014 at 1:37 PM, Peter Münster <pmlists@free.fr> wrote:
>
>> On Fri, Jan 10 2014, Fabrice Couvreur wrote:
>>
>> > %%% Local Variables:
>> > %%% Mode: LaTeX
>> > %%% LaTeX-command "LuaLaTeX-shell-escape"
>> > %%% End:
>>
>> %%% Local Variables:
>> %%% Mode: context
>> %%% End:
>>
>> For using "context" instead of "texexec", put this in your init-file:
>>
>> (eval-after-load 'tex
>>   '(add-to-list
>>       'TeX-command-list
>>       '("ConTeXt" "context --nonstopmode %t"
>>         TeX-run-TeX nil (context-mode) :help "Run ConTeXt")))
>>
>> If you prefer to use context-mode by default for every file with ".tex" as
>> suffix, then you can add this to your init-file:
>>
>> (add-to-list 'auto-mode-alist '("\\.tex\\'" . context-mode))
>>
>> Then you won't need the "Local Variables" section at the end of each
>> ConTeXt-file.
>>
>> --
>>            Peter
>>
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>>
>> ___________________________________________________________________________________
>>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 5823 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: ConTeXt with Emacs
  2014-01-10 21:37 ` Peter Münster
@ 2014-01-10 22:08   ` Mica Semrick
  2014-01-10 22:47     ` Fabrice Couvreur
  0 siblings, 1 reply; 15+ messages in thread
From: Mica Semrick @ 2014-01-10 22:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2322 bytes --]

my .emacs looks like this:

;; Open in ConTeXt mode
(add-hook 'LaTeX-mode-hook 'TeX-PDF-mode) ;; AucTeX turn on PDF mode by
default
(add-hook 'LaTeX-mode-hook (function turn-on-reftex)) ;; Turn on RefTeX
when AucTeX loads
(add-hook 'ConTeXt-mode-hook 'yas/minor-mode-on) ;; Turn on YaSnippet minor
mode in ConTeXt-en-mode
(add-hook 'ConTeXt-mode-hook (function turn-on-reftex)) ;; Turn on RefTeX
when AucTeX loads
(setq TeX-default-mode 'context-mode) ;; Make context-mode the default
tex-mode
(setq reftex-plug-into-AUCTeX t) ;; Turn on RefTeX when AucTeX loads
(add-hook 'TeX-mode-hook '(lambda () (TeX-fold-mode 1)))

;; Add option for MKIV and make it the default for C-c C-c

(add-hook 'ConTeXt-mode-hook (lambda()
(add-to-list 'TeX-command-list '("ConTeXt MKIV" "context %t" TeX-run-TeX
nil (context-mode) ))
(setq TeX-command-default "ConTeXt MKIV")
(setq TeX-save-query  nil )
))




On Fri, Jan 10, 2014 at 1:37 PM, Peter Münster <pmlists@free.fr> wrote:

> On Fri, Jan 10 2014, Fabrice Couvreur wrote:
>
> > %%% Local Variables:
> > %%% Mode: LaTeX
> > %%% LaTeX-command "LuaLaTeX-shell-escape"
> > %%% End:
>
> %%% Local Variables:
> %%% Mode: context
> %%% End:
>
> For using "context" instead of "texexec", put this in your init-file:
>
> (eval-after-load 'tex
>   '(add-to-list
>       'TeX-command-list
>       '("ConTeXt" "context --nonstopmode %t"
>         TeX-run-TeX nil (context-mode) :help "Run ConTeXt")))
>
> If you prefer to use context-mode by default for every file with ".tex" as
> suffix, then you can add this to your init-file:
>
> (add-to-list 'auto-mode-alist '("\\.tex\\'" . context-mode))
>
> Then you won't need the "Local Variables" section at the end of each
> ConTeXt-file.
>
> --
>            Peter
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3580 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: ConTeXt with Emacs
  2014-01-10 18:52 Fabrice Couvreur
                   ` (3 preceding siblings ...)
  2014-01-10 20:08 ` Willi Egger
@ 2014-01-10 21:37 ` Peter Münster
  2014-01-10 22:08   ` Mica Semrick
  4 siblings, 1 reply; 15+ messages in thread
From: Peter Münster @ 2014-01-10 21:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Jan 10 2014, Fabrice Couvreur wrote:

> %%% Local Variables: 
> %%% Mode: LaTeX 
> %%% LaTeX-command "LuaLaTeX-shell-escape" 
> %%% End: 

%%% Local Variables: 
%%% Mode: context
%%% End: 

For using "context" instead of "texexec", put this in your init-file:

(eval-after-load 'tex
  '(add-to-list
      'TeX-command-list
      '("ConTeXt" "context --nonstopmode %t"
        TeX-run-TeX nil (context-mode) :help "Run ConTeXt")))

If you prefer to use context-mode by default for every file with ".tex" as
suffix, then you can add this to your init-file:

(add-to-list 'auto-mode-alist '("\\.tex\\'" . context-mode))

Then you won't need the "Local Variables" section at the end of each
ConTeXt-file.

-- 
           Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: ConTeXt with Emacs
  2014-01-10 20:08 ` Willi Egger
@ 2014-01-10 20:40   ` Fabrice Couvreur
  2014-01-10 22:52     ` Hans Hagen
  0 siblings, 1 reply; 15+ messages in thread
From: Fabrice Couvreur @ 2014-01-10 20:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1914 bytes --]

Thank you for the answers.
If I summarize, we can not comment on the files at the end because
everything that comes after \stoptext is ignored.
I was already using the command line 'contest file.tex.
Or Set ConTeXt as my default TeX flavor in the AUCTEX settings.


2014/1/10 Willi Egger <context@boede.nl>

> in the simplest case a Context document consists of
>
> \starttext
> Your text
> \stoptext
>
> (commented) lines added after \stoptext are ignored.
>
> Willi
> On 10 jan. 2014, at 19:52, Fabrice Couvreur <fabrice1.couvreur@gmail.com>
> wrote:
>
> Hello,
> I use Emacs as an editor and I compile my files with LuaLaTeX by adding
> the following lines to the end of the file:
>
> %%% Local Variables:
> %%% Mode: LaTeX
> %%% LaTeX-command "LuaLaTeX-shell-escape"
> %%% End:
>
> I discovered ConTeXt, and I would like to know which lines to add to the
> end of files.
> Thank you.
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 4025 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: ConTeXt with Emacs
  2014-01-10 18:52 Fabrice Couvreur
                   ` (2 preceding siblings ...)
  2014-01-10 19:57 ` Bill Meahan
@ 2014-01-10 20:08 ` Willi Egger
  2014-01-10 20:40   ` Fabrice Couvreur
  2014-01-10 21:37 ` Peter Münster
  4 siblings, 1 reply; 15+ messages in thread
From: Willi Egger @ 2014-01-10 20:08 UTC (permalink / raw)
  To: NTG-Context ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1100 bytes --]

in the simplest case a Context document consists of

\starttext
		Your text
\stoptext

(commented) lines added after \stoptext are ignored.

Willi
On 10 jan. 2014, at 19:52, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:

> Hello, 
> I use Emacs as an editor and I compile my files with LuaLaTeX by adding the following lines to the end of the file: 
> 
> %%% Local Variables: 
> %%% Mode: LaTeX 
> %%% LaTeX-command "LuaLaTeX-shell-escape" 
> %%% End: 
> 
> I discovered ConTeXt, and I would like to know which lines to add to the end of files. 
> Thank you.
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 1981 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: ConTeXt with Emacs
  2014-01-10 18:52 Fabrice Couvreur
  2014-01-10 19:04 ` Hans Hagen
  2014-01-10 19:50 ` Bill Meahan
@ 2014-01-10 19:57 ` Bill Meahan
  2014-01-10 20:08 ` Willi Egger
  2014-01-10 21:37 ` Peter Münster
  4 siblings, 0 replies; 15+ messages in thread
From: Bill Meahan @ 2014-01-10 19:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 4143 bytes --]

On 1/10/2014 1:52 PM, Fabrice Couvreur wrote:
> Hello,
> I use Emacs as an editor and I compile my files with LuaLaTeX by 
> adding the following lines to the end of the file:
>
> %%% Local Variables:
> %%% Mode: LaTeX
> %%% LaTeX-command "LuaLaTeX-shell-escape"
> %%% End:
>
> I discovered ConTeXt, and I would like to know which lines to add to 
> the end of files.
> Thank you.
>


This /fragment/ from my .emacs file should show you some other helpful 
settings


;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  '(ConTeXt-clean-intermediate-suffixes (quote ("\\.tuc" "\\.tui" 
"\\.tup" "\\.ted" "\\.tes" "\\.top" "\\.log" "\\.tmp" "\\.run" "\\.bck" 
"\\.rlg" "\\.mpt" "\\.mpx" "\\.mpd" "\\.mpo" "\\.tuo" "\\.tub" "\\.top" 
"-mpgraph\\.mp" "-mpgraph\\.mpd" "-mpgraph\\.mpo" "-mpgraph\\.mpy" 
"-mprun\\.mp" "-mprun\\.mpd" "-mprun\\.mpo" "-mprun\\.mpy")))
  '(ConTeXt-clean-output-suffixes (quote ("\\.tuc" "\\.log" "\\.dvi" 
"\\.pdf" "\\.ps")))
  '(ConTeXt-engine nil)
  '(LaTeX-beamer-item-overlay-flag nil)
  '(LaTeX-biblatex-use-Biber nil)
  '(LaTeX-mode-hook (quote (preview-mode-setup)))
  '(TeX-PDF-mode t)
  '(TeX-bar-LaTeX-buttons (quote (new-file open-file dired kill-buffer 
save-buffer undo cut copy paste [separator nil] latex next-error view nil)))
  '(TeX-bar-TeX-buttons (quote (new-file open-file dired kill-buffer 
save-buffer undo cut copy paste [separator nil] tex next-error view nil)))
  '(TeX-close-quote "}")
  '(TeX-command-list (quote (("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' 
%t" TeX-run-TeX nil (plain-tex-mode texinfo-mode ams-tex-mode) :help 
"Run plain TeX") ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode 
doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %t" 
TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info 
output") ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil 
(texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" 
"%(PDF)amstex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) 
:help "Run AMSTeX") ("ConTeXt" "context --once --synctex %t" TeX-run-TeX 
nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "context 
--synctex %t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until 
completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run 
BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") 
("View" "%V" TeX-run-discard-or-function nil t :help "Run Viewer") 
("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" 
TeX-run-background nil t :help "View the printer queue" :visible 
TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-command t t 
:help "Generate PostScript file") ("Index" "makeindex %s" 
TeX-run-command nil t :help "Create index file") ("Check" "lacheck %s" 
TeX-run-compile nil (latex-mode) :help "Check LaTeX file for 
correctness") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil 
t :help "Spell-check the document") ("Clean" "TeX-clean" 
TeX-run-function nil t :help "Delete generated intermediate files") 
("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete 
generated intermediate and output files") ("Other" "" TeX-run-command t 
t :help "Run an arbitrary command"))))
  '(TeX-default-mode (quote context-en-mode))
  '(TeX-engine (quote luatex))
  '(TeX-kpathsea-path-delimiter t)
  '(TeX-modes (quote (tex-mode plain-tex-mode latex-mode doctex-mode)))
  '(TeX-open-quote "\\quotation{")
  '(TeX-source-correlate-method (quote synctex))
  '(TeX-source-correlate-mode t)
  '(TeX-source-correlate-start-server t)
  '(TeX-view-predicate-list (quote ((nil nil))))
  '(TeX-view-program-list (quote (("Sumatra PDF" ("\"C:/Program Files 
(x86)/SumatraPDF/SumatraPDF.exe\" -reuse-instance" (mode-io-correlate " 
-forward-search %b %n") " %o")))))
  '(TeX-view-program-selection (quote (((paper-letter style-pstricks) 
"dvips and start") (output-dvi "Yap") (output-pdf "Sumatra PDF") 
(output-html "start"))))

-- 
Bill Meahan, Westland, Michigan

  
  


[-- Attachment #1.2: Type: text/html, Size: 5323 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: ConTeXt with Emacs
  2014-01-10 18:52 Fabrice Couvreur
  2014-01-10 19:04 ` Hans Hagen
@ 2014-01-10 19:50 ` Bill Meahan
  2014-01-10 19:57 ` Bill Meahan
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 15+ messages in thread
From: Bill Meahan @ 2014-01-10 19:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 626 bytes --]

On 1/10/2014 1:52 PM, Fabrice Couvreur wrote:
> Hello,
> I use Emacs as an editor and I compile my files with LuaLaTeX by 
> adding the following lines to the end of the file:
>
> %%% Local Variables:
> %%% Mode: LaTeX
> %%% LaTeX-command "LuaLaTeX-shell-escape"
> %%% End:
>
> I discovered ConTeXt, and I would like to know which lines to add to 
> the end of files.
> Thank you.
>

Set ConTeXt as your default TeX flavor in the AUCTEX settings. AUCTEX -> 
Tex Default Mode ->  Check "Other" then type in context-en-mode or, if 
English is not your language, modify appropriately

-- 
Bill Meahan, Westland, Michigan

  
  


[-- Attachment #1.2: Type: text/html, Size: 1358 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: ConTeXt with Emacs
  2014-01-10 18:52 Fabrice Couvreur
@ 2014-01-10 19:04 ` Hans Hagen
  2014-01-10 19:50 ` Bill Meahan
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2014-01-10 19:04 UTC (permalink / raw)
  To: ntg-context

On 1/10/2014 7:52 PM, Fabrice Couvreur wrote:
> Hello,
> I use Emacs as an editor and I compile my files with LuaLaTeX by adding
> the following lines to the end of the file:
>
> %%% Local Variables:
> %%% Mode: LaTeX
> %%% LaTeX-command "LuaLaTeX-shell-escape"
> %%% End:
>
> I discovered ConTeXt, and I would like to know which lines to add to the
> end of files.

context filename

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* ConTeXt with Emacs
@ 2014-01-10 18:52 Fabrice Couvreur
  2014-01-10 19:04 ` Hans Hagen
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Fabrice Couvreur @ 2014-01-10 18:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 311 bytes --]

Hello,
I use Emacs as an editor and I compile my files with LuaLaTeX by adding the
following lines to the end of the file:

%%% Local Variables:
%%% Mode: LaTeX
%%% LaTeX-command "LuaLaTeX-shell-escape"
%%% End:

I discovered ConTeXt, and I would like to know which lines to add to the
end of files.
Thank you.

[-- Attachment #1.2: Type: text/html, Size: 433 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2014-01-11  0:04 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-10 18:34 ConTeXt with Emacs Fabrice
2014-01-10 18:52 Fabrice Couvreur
2014-01-10 19:04 ` Hans Hagen
2014-01-10 19:50 ` Bill Meahan
2014-01-10 19:57 ` Bill Meahan
2014-01-10 20:08 ` Willi Egger
2014-01-10 20:40   ` Fabrice Couvreur
2014-01-10 22:52     ` Hans Hagen
2014-01-10 21:37 ` Peter Münster
2014-01-10 22:08   ` Mica Semrick
2014-01-10 22:47     ` Fabrice Couvreur
2014-01-10 22:58       ` Peter Münster
2014-01-10 23:16         ` Fabrice Couvreur
2014-01-10 23:36           ` Fabrice Couvreur
2014-01-11  0:04           ` Peter Münster

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 NNTP newsgroup(s).