Re: [NTG-context] Emacs24 + AucTeX + ConTeXt
the command should be: (eval-after-load "tex" '(add-to-list 'TeX-command-list '("context" "source /home/fab/context/tex/setuptex && context" TeX-run-TeX nil (context-mode) :help "Run ConTeXt") t)) > On 29 Oct 2016, at 23:41, Fabrice Couvreur> wrote: > > Hi, > @Tobias > > If I add this to my .emacs I get > > (setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t) > (add-to-list 'load-path "/home/fab/context/tex/texmf-linux-64/bin/context") > > Warning (initialization): An error occurred while loading `/home/fab/.emacs': > > Symbol's value as variable is void: /Users/fab/tex/texmf-linux-64/bin > > > @Michael > > fab@debian:~$ which context > /home/fab/bin/context > fab@debian:~$ source context/tex/setuptex > Setting "/home/fab/context/tex" as ConTeXt root. > fab@debian:~$ which context > /home/fab/context/tex/texmf-linux-64/bin/context > fab@debian:~$ > > If I add this to my .emacs is always texlive 2016 is invoked when I compile > > (eval-after-load "tex" > '(add-to-list 'TeX-command-list > '("context" > "(/home/fab/context)/setuptex&" > TeX-run-TeX > nil > (context-mode) > :help "Run ConTeXt") t)) > > > Thanks, > Fabrice > > > 2016-10-29 12:50 GMT+02:00 Michael Eidenbenz : > sorry that should be: > > (path to textree)/setuptex && context . > > >> >> cd (path to textree) && setuptex && context etc... > > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] texexec in ConTeXt Standalone does not work
yeah ok, Hagen. And Thank you all On Sun, Oct 30, 2016 at 12:36 AM, Hans Hagenwrote: > On 10/29/2016 11:50 AM, Pablo Rodriguez wrote: > >> On 10/29/2016 11:18 AM, Asim ConTeXt wrote: >> >>> Thank you, Pablo, for the information about the Microtype package. And >>> after a bit more searching (and getting an answer from Hans Hagen :-) ), >>> I am considering MkIV, instead of MkII, now. But I have another >>> question: How can I identify the files that are only required for MkII, >>> and not needed for MkIV? Would it be safe to delete them? Actually I >>> want to reduce the size of ConTeXt as much as possible. >>> >> >> Hi Asim, >> >> just for your information: the most bytes in the ConTeXt Suite come from >> fonts. >> >> In order to have a MkIV-only ConTeXt Suite, please add "--engine=luatex" >> to your script invocaton. (This is explained in >> http://wiki.contextgarden.net/ConTeXt_Standalone#Single_user_installation >> .) >> >> I don’t think it is safe to remove files individually. I think it is way >> safer to download the ConTeXt Suite again. >> > > keep in m in that --engine is cummulative as the installer remembers what > components needs to be updated so you need to do a fresh install for > --engine=luatex > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | 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/list > info/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Emacs24 + AucTeX + ConTeXt
Hi, @Tobias If I add this to my .emacs I get (setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t) (add-to-list 'load-path "/home/fab/context/tex/texmf-linux-64/bin/context") Warning (initialization): An error occurred while loading `/home/fab/.emacs': Symbol's value as variable is void: /Users/fab/tex/texmf-linux-64/bin @Michael fab@debian:~$ which context /home/fab/bin/context fab@debian:~$ source context/tex/setuptex Setting "/home/fab/context/tex" as ConTeXt root. fab@debian:~$ which context /home/fab/context/tex/texmf-linux-64/bin/context fab@debian:~$ If I add this to my .emacs is always texlive 2016 is invoked when I compile (eval-after-load "tex" '(add-to-list 'TeX-command-list '("context" "(/home/fab/context)/setuptex&" TeX-run-TeX nil (context-mode) :help "Run ConTeXt") t)) Thanks, Fabrice 2016-10-29 12:50 GMT+02:00 Michael Eidenbenz: > sorry that should be: > > (path to textree)/setuptex && context . > > > > cd (path to textree) && setuptex && context etc... > > > > > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] texexec in ConTeXt Standalone does not work
On 10/29/2016 11:50 AM, Pablo Rodriguez wrote: On 10/29/2016 11:18 AM, Asim ConTeXt wrote: Thank you, Pablo, for the information about the Microtype package. And after a bit more searching (and getting an answer from Hans Hagen :-) ), I am considering MkIV, instead of MkII, now. But I have another question: How can I identify the files that are only required for MkII, and not needed for MkIV? Would it be safe to delete them? Actually I want to reduce the size of ConTeXt as much as possible. Hi Asim, just for your information: the most bytes in the ConTeXt Suite come from fonts. In order to have a MkIV-only ConTeXt Suite, please add "--engine=luatex" to your script invocaton. (This is explained in http://wiki.contextgarden.net/ConTeXt_Standalone#Single_user_installation.) I don’t think it is safe to remove files individually. I think it is way safer to download the ConTeXt Suite again. keep in m in that --engine is cummulative as the installer remembers what components needs to be updated so you need to do a fresh install for --engine=luatex - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Emacs24 + AucTeX + ConTeXt
sorry that should be: (path to textree)/setuptex && context . > > cd (path to textree) && setuptex && context etc... ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Emacs24 + AucTeX + ConTeXt
check which binary is used with which context and correct our PATH according to your needs. you can always add more C-c C-c commands for multiple installations (beta, current, texlive ..) as I wrote before. just change the command to cd (path to textree) && setuptex && context etc... Michael > On 29 Oct 2016, at 09:55, Fabrice Couvreur> wrote: > > Hi, > If I add this (add-to-list 'load-path > "/home/fab/context/tex/texmf-linux-64/bin") in the .emacs, one C-c C-c > invokes the executable texlive, not the context of standalone. > Fabrice ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Emacs24 + AucTeX + ConTeXt
… add (setenv "PATH" "/Users//tex/texmf-/bin/:$PATH" t) in your .emacs and Emacs should find the way to the minimals. ALOHA, tobber > Am 28.10.2016 um 23:57 schrieb Fabrice Couvreur: > > Hi Mica, > I added this (custom-set-variables ' (ConTeXt-Mark-version "IV")) in my > .emacs and it seems to work, thank you. > Another question : when I do a C-c C-c is texlive context of 2016 is called. > How to be it standalone context ? > Fabrice > > 2016-10-28 19:07 GMT+02:00 Mica Semrick : > I haven't checked in a while, since this is already set in my init.el file, > but auxtex was using mkii/texexec a few years ago. Have you checked you're > using mkiv/context? > > On October 28, 2016 6:04:27 AM PDT, Fabrice Couvreur > wrote: > Hello, > I just upgraded to emacs24 and am having problems compiling my files who > compiled perfectly with emacs23. > I installed AUCTeX with M-x-install package and that's it ! > I deleted my old init.el file and start over ! > The ~/.emacs.d only contains this : > > fab @ debian: ~ $ cd .emacs.d / > fab @ debian: ~ / .emacs.d $ ls -l > total 8 > drwx -- 2 fab fab 4096 October 28 2:37 p.m. auto-save-list > drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA > fab @ debian: ~ / $ .emacs.d > > Consider the following file: > If I make a C-c C-c, all I get is the text in italics, the macro is not > compiled. > Thanks, > Fabrice > > % macros=mkvi > > \setupcolors[state=start] > \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] > \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] > > > \defineframedtext > [MyDefinition] > [before={\blank[line,halfline]}, >after={\blank}, >frame=off, >background=MyFrame, >width=\textwidth, >height=fit, >location=left, >style=italic] > > \defineoverlay > [MyFrame] > [\useMPgraphic{MyFrame}] > > \definelabel > [Définition] > [headstyle=\bf\smallcaps] > > \startuseMPgraphic{MyFrame} > path b ; > picture p ; > p := textext.rt("\white\Définition") ; > p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ; > b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; > fill OverlayBox withcolor \MPcolor{MyColorA} ; > fill b withcolor \MPcolor{MyColorB} ; > draw leftboundary OverlayBox ; > draw p ; > setbounds currentpicture to OverlayBox ; > \stopuseMPgraphic > > \starttext > \startMyDefinition > \input knuth > \stopMyDefinition > > \stoptext > > %%% Local Variables: > %%% mode: context > %%% End: > > > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] texexec in ConTeXt Standalone does not work
On 10/29/2016 11:18 AM, Asim ConTeXt wrote: > Thank you, Pablo, for the information about the Microtype package. And > after a bit more searching (and getting an answer from Hans Hagen :-) ), > I am considering MkIV, instead of MkII, now. But I have another > question: How can I identify the files that are only required for MkII, > and not needed for MkIV? Would it be safe to delete them? Actually I > want to reduce the size of ConTeXt as much as possible. Hi Asim, just for your information: the most bytes in the ConTeXt Suite come from fonts. In order to have a MkIV-only ConTeXt Suite, please add "--engine=luatex" to your script invocaton. (This is explained in http://wiki.contextgarden.net/ConTeXt_Standalone#Single_user_installation.) I don’t think it is safe to remove files individually. I think it is way safer to download the ConTeXt Suite again. I hope it helps, Pablo -- http://www.ousia.tk ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] texexec in ConTeXt Standalone does not work
Thank you, Pablo, for the information about the Microtype package. And after a bit more searching (and getting an answer from Hans Hagen :-) ), I am considering MkIV, instead of MkII, now. But I have another question: How can I identify the files that are only required for MkII, and not needed for MkIV? Would it be safe to delete them? Actually I want to reduce the size of ConTeXt as much as possible. On Sat, Oct 29, 2016 at 3:11 AM, Hans Hagenwrote: > On 10/28/2016 9:06 PM, Pablo Rodriguez wrote: > >> On 10/28/2016 08:35 PM, Asim ConTeXt wrote: >> >>> Thank you. >>> I want to use MkII because, as far as I know, MkII uses pdfTeX; which is >>> stable. While MkIV uses LuaTeX; which is yet in development. Further, >>> pdfTeX is better at microtypography. >>> >> > In what respect better? The mechanism in Luatex is mostly the same as in > pdftex but has been improved a bit (cleaner pdf code, more efficient font > usage i.e. no duplicate fonts, etc.) and the mkiv support is probably a bit > better than mkii too. > > Am I correct at these two points? I would like to hear from you. >>> >> >> Hi Asim, >> >> I’m only an average user. But I guess LuaTeX is pretty stable (version 1 >> was released recently). >> >> I have no complain about LuaTeX microtypography. I mean, I use both font >> expansion and character protrusion, and they work fine for me. >> >> But I’m not a LaTeX user. If you took the data from >> http://mirrors.ctan.org/macros/latex/contrib/microtype/ >> microtype.pdf#page=7, >> please don’t forget that the LuaTeX version included in that table is old. >> >> Maybe you find interesting this thread about microtypography in ConTeXt: >> https://mailman.ntg.nl/pipermail/ntg-context/2016/084990.html. >> >> I found that my system fonts are located at c:\windows\fonts, so I added >>> this address in front of OSFONTDIR in texmf.cnf file. But it still is >>> not working, although the previous warning message has now gone. ConTeXt >>> now silently stops the processing and does not give any output file. >>> >> >> I’d rather use MkIV. But if you want to stick to MkII, consider the >> following variants: >> >> OSFONTDIR = $SystemRoot/Fonts >> OSFONTDIR = c:/Windows/Fonts >> >> I cannot remember, but I think using "\" is problematic with TeX (even >> for path names). >> >> Just in case it might help, >> >> >> Pablo >> >> > > -- > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | www.pragma-ade.nl | 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/list > info/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Emacs24 + AucTeX + ConTeXt
Hi, If I add this (add-to-list 'load-path "/home/fab/context/tex/texmf-linux-64/bin") in the .emacs, one C-c C-c invokes the executable texlive, not the context of standalone. Fabrice 2016-10-29 1:23 GMT+02:00 Michael Eidenbenz: > you can add any TeX command (the ones you call with C-c C-c) to your > init.el like this: > > '(add-to-list 'TeX-command-list > '("contex" > "context %t --nonstopmode --purgeall" % change the > command to your needs > TeX-run-TeX > nil > (context-mode) > :help "Run ConTeXt") > t)) > > I run emacs25 and auctex 11.89.5 without problems. > although i use auctex only for C-c C-c. > > Michael > > > On 28 Oct 2016, at 23:57, Fabrice Couvreur > wrote: > > Hi Mica, > I added this (custom-set-variables ' (ConTeXt-Mark-version "IV")) in my > .emacs and it seems to work, thank you. > Another question : when I do a C-c C-c is texlive context of 2016 is > called. How to be it standalone context ? > Fabrice > > 2016-10-28 19:07 GMT+02:00 Mica Semrick : > >> I haven't checked in a while, since this is already set in my init.el >> file, but auxtex was using mkii/texexec a few years ago. Have you checked >> you're using mkiv/context? >> >> On October 28, 2016 6:04:27 AM PDT, Fabrice Couvreur < >> fabrice1.couvr...@gmail.com> wrote: >> >>> Hello, >>> I just upgraded to emacs24 and am having problems compiling my files who >>> compiled perfectly with emacs23. >>> I installed AUCTeX with M-x-install package and that's it ! >>> I deleted my old init.el file and start over ! >>> The ~/.emacs.d only contains this : >>> >>> fab @ debian: ~ $ cd .emacs.d / >>> fab @ debian: ~ / .emacs.d $ ls -l >>> total 8 >>> drwx -- 2 fab fab 4096 October 28 2:37 p.m. auto-save-list >>> drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA >>> fab @ debian: ~ / $ .emacs.d >>> >>> Consider the following file: >>> If I make a C-c C-c, all I get is the text in italics, the macro is not >>> compiled. >>> Thanks, >>> Fabrice >>> >>> % macros=mkvi >>> >>> \setupcolors[state=start] >>> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] >>> \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] >>> >>> >>> \defineframedtext >>> [MyDefinition] >>> [before={\blank[line,halfline]}, >>>after={\blank}, >>>frame=off, >>>background=MyFrame, >>>width=\textwidth, >>>height=fit, >>>location=left, >>>style=italic] >>> >>> \defineoverlay >>> [MyFrame] >>> [\useMPgraphic{MyFrame}] >>> >>> \definelabel >>> [Définition] >>> [headstyle=\bf\smallcaps] >>> >>> \startuseMPgraphic{MyFrame} >>> path b ; >>> picture p ; >>> p := textext.rt("\white\Définition") ; >>> p := p shifted (2BodyFontSize,OverlayHeight-ypart center >>> p+.25ExHeight) ; >>> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; >>> fill OverlayBox withcolor \MPcolor{MyColorA} ; >>> fill b withcolor \MPcolor{MyColorB} ; >>> draw leftboundary OverlayBox ; >>> draw p ; >>> setbounds currentpicture to OverlayBox ; >>> \stopuseMPgraphic >>> >>> \starttext >>> \startMyDefinition >>> \input knuth >>> \stopMyDefinition >>> >>> \stoptext >>> >>> %%% Local Variables: >>> %%% mode: context >>> %%% End: >>> >>> -- >>> >>> 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://context.aanhet.net >>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>> 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/list >> info/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > > > > > ___ > If your