[NTG-context] Lucida (from a newbie) question
Hello I'm trying to switch from plain TeX (with my own set of macros) to ConTeXt. I bought the Lucida fonts and I wish ti use them. I don't find how to do this on my Mac-Live with TexShop install. I promise I've read anything I could find on the ConTeXt wiki. Thank's by advance. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lucida (from a newbie) question
Le 3 août 08 à 08:38, Yue Wang a écrit : Hi, Eric: You should have all the tfms generated. Yes, they are in the fonts/type1/bh/lucida directory The attachment is all the file you need except the pfbs. extract it to texmf-fonts directory, and mkdir texmf-fonts/fonts/type1 copy all the pfb type1 files there, and run texhash. done When I try to use \usetypescriptfile[type-buy] \usetypescript[lucida][texnansi] \setupbodyfont[lucida,12pt] Compilation says ! I can't find file `texnansi-raw-lbf' It's better than before : it didn't do anything :-) Tank's for your help. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lucida (from a newbie) question
Le 3 août 08 à 10:42, Eric DÉTREZ a écrit : Le 3 août 08 à 08:38, Yue Wang a écrit : The attachment is all the file you need except the pfbs. extract it to texmf-fonts directory, and mkdir texmf-fonts/fonts/ type1 copy all the pfb type1 files there, and run texhash. done When I try to use \usetypescriptfile[type-buy] \usetypescript[lucida][texnansi] \setupbodyfont[lucida,12pt] Compilation says ! I can't find file `texnansi-raw-lbf' It's better than before : it didn't do anything :-) It seems that the problem comes from some files in texmf/fonts/tfm/bh/ lucida whose names ares raw-l***.tfm. I tried to install as Yue Wang says in a new account and everything worked fine (I install new files in a texmf folder wich is in the home folder). Thanks for you help. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Page numbering and first page
Hello Is it any way to get a different page numbering for the first page (and different heads and foots). I used to do in plain tex with a test : * \newif\ifpageun \ifnum\pageno=1 \pageuntrue \else \pageunfalse \fi \footline={\ifpageun \hfil \global \pageunfalse \else \numpage=\pageno \advance\numpage by \decale \ifodd\numpage\rm \the\nom \hfill --page \the\numpage-- \else \rm --page \the\numpage--\hfill\the \nom \fi \fi} * (names are french) but maybe there is a simpler way in Context. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] hiding enumerations
Hello again I wish to use the structure of block to hide somme of them. Unfortunately reseting them doesn't seem to work. Here is a minimal example : ** \starttext \defineenumeration[exercice][location=inleft] \defineblock[titre,question,reponse] \hideblocks[,reponse] \begintitre \exercice {\bf Facile} \endtitre% % \beginquestion $\displaystyle \sin\left(\pi \over 6\right)$ \endquestion \beginreponse $1 \over 2$ \endreponse {\bf Réponses} \reset[exercice] \useblocks[titre,reponse] \stoptext ** I get an error with ** ! Undefined control sequence. \currentdescriptionnumber ... \currentdescription \??dd \c!number \endcsname \@@ddresetsubsubsubnumber ...entdescriptionnumber }\resetnumber [\v! sub \v!s... \@@ddresetsubsubnumber ...b \v!sub \c!number }{#1} \resetnumber [\v! sub \v!su... \@@ddresetsubnumber ...!sub \v!sub \c!number }{#1} \resetnumber [\v! sub \@@de... \@@ddresetnumber ...s!reset \v!sub \c!number }{#1} \resetnumber [\@@descripti... \next1 #1,-\dodoreset{#1} \doprocesscommaitem … 1.47 \reset[exercice] ** The line (47) is not the correct one here I deleted comments. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hiding enumerations
Le 6 août 08 à 11:02, Wolfgang Schuster a écrit : On Wed, Aug 6, 2008 at 10:42 AM, Eric DÉTREZ [EMAIL PROTECTED] wrote: Unfortunately reseting them doesn't seem to work. Use \resetnumber[exercice] for the moment. Thank's it works fine. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Parameters of criterium
Hello again I'm experimenting with menus. I wish to get menu that are section-sensitive : in a section I wish a menu with all sections and only subsections of the current section (it hides the other subsections). I imagined that the criterium =x was the key but I don't get the desired result. Is there any documentation about this parameter ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Menus in presentation
Hello again Is it possible to get a menu in the left side of presentation ? Any sample ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] inframed : makes a newline
Hello When I use a inframed command at the start of a line it doesn't allow to be continued by text : ** \starttext blabla \inframed{essai} blabla \inframed{essai} blabla \stoptext ** gives -- blabla framed{essai} blabla framed{essai} blabla -- I expected -- blabla framed{essai} blabla framed{essai} blabla -- Is it anything to do ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] different layout in the table of content
hello I wish to show le numeration differently. if a is the chapter number, b the section number and c the subsubsection chapter number, I write a.bc. L. Cheno showed me how to do this in the head number : * \def\Numeros#1.#2.#3{{#1}.{#2}{#3}} \def\CNumeros#1#2{\expandafter\Numeros\currentheadnumber\ {#2}} \setuphead[subsection][command=\CNumero] * Unfortunately this doesn't work in the table of contents. How can we change the look of the numeration in the toc ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] big are big with lucida
Hello The bigl, bigr ans so on are really BIG (huge even) when used with lucida. I think that math-lbr is guilty : it says ** \def\LBRbig {\@@dobig{8.20}} \def\LBRBig {\@@dobig{10.80}} \def\LBRbigg {\@@dobig{13.42}} \def\LBRBigg {\@@dobig{16.03}} \def\LBRbiggg{\@@dobig{17.72}} \def\LBRBiggg{\@@dobig{21.25}} ** Shouldn't it says ** \def\LBRbig {\@@dobig{0.920}} \def\LBRBig {\@@dobig{1.080}} \def\LBRbigg {\@@dobig{1.342}} \def\LBRBigg {\@@dobig{1.603}} \def\LBRbiggg{\@@dobig{1.772}} \def\LBRBiggg{\@@dobig{2.125}} ** ? There is a strange behavior : if I put \def\LBRbig {\@@dobig{0.930}} big is bigger than Big. How is this possible ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Reorganization of the main page
Le 27 août 08 à 11:20, Marcin Borkowski a écrit : As you said: a professional-looking logo is a good thing. BTW: the current logo looks like this: O C N E T X T I don't like the order; I didn't like it neither what about O C N T T X E ? I rather suggest O C N E TT X ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] big are big with lucida
Le 29 août 08 à 04:51, Yue Wang a écrit : Are you sure? see the first line of the attachment. It seems that the text you sent is writen with CM fonts. The problem is only with Lucida fonts. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] big are big with lucida
Le 29 août 08 à 08:59, Wolfgang Schuster a écrit : On Fri, Aug 29, 2008 at 8:50 AM, Eric DÉTREZ [EMAIL PROTECTED] wrote: Le 29 août 08 à 04:51, Yue Wang a écrit : Are you sure? see the first line of the attachment. It seems that the text you sent is writen with CM fonts. The problem is only with Lucida fonts. This is *not* Latin/Computer Modern. Allright, I'm not a font expert. Here is what I get when I disable \def\LBRbig {\@@dobig{0.920}} \def\LBRBig {\@@dobig{1.080}} \def\LBRbigg {\@@dobig{1.342}} \def\LBRBigg {\@@dobig{1.603}} \def\LBRbiggg{\@@dobig{1.772}} \def\LBRBiggg{\@@dobig{2.125}} : inline: Image 1.png ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] big are big with lucida
Le 29 août 08 à 12:00, Yue Wang a écrit : On Sat, Aug 23, 2008 at 5:58 AM, Eric DÉTREZ [EMAIL PROTECTED] wrote: Hello The bigl, bigr ans so on are really BIG (huge even) when used with lucida. I think that math-lbr is guilty : it says ** \def\LBRbig {\@@dobig{8.20}} \def\LBRBig {\@@dobig{10.80}} \def\LBRbigg {\@@dobig{13.42}} \def\LBRBigg {\@@dobig{16.03}} \def\LBRbiggg{\@@dobig{17.72}} \def\LBRBiggg{\@@dobig{21.25}} ** Shouldn't it says ** \def\LBRbig {\@@dobig{0.920}} \def\LBRBig {\@@dobig{1.080}} \def\LBRbigg {\@@dobig{1.342}} \def\LBRBigg {\@@dobig{1.603}} \def\LBRbiggg{\@@dobig{1.772}} \def\LBRBiggg{\@@dobig{2.125}} ** ? How do you get these variables? the symbols in lucida math are different. I just divided the size by 10 with a modification for big (doesn't understand why, see the second part of my question). They look like the sizes in math-tex ** \def\PLAINbig {\@@dobig{0.85}} \def\PLAINBig {\@@dobig{1.15}} \def\PLAINbigg{\@@dobig{1.45}} \def\PLAINBigg{\@@dobig{1.75}} ** you can also refer to ftp://ftp.comp.hkbu.edu.hk/pub/TeX/CTAN/macros/latex/contrib/psnfssx/lucidabr/lucidabr.pdf . page 9, line 263-273 Indeed the original sizes are the same. But the lucidabr package uses 8.20 pt and context uses a multiple of fontsize : ** \def\@@dobig#1#2% [EMAIL PROTECTED] ** Does anybody understand why big with \def\LBRbig {\@@dobig{0.930}} is bigger than Big with \def\LBRBig {\@@dobig{1.080}} ? There is a strange behavior : if I put \def\LBRbig {\@@dobig{0.930}} big is bigger than Big. How is this possible ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Lucida again
Hello I know that I disturb a lot this list, please forgive me. I tried to install a new mac. I donwloaded mactex (2008) I installed lucida fons in ~/Library/texmf/ then I typed sudo mktexlsr and sudo updmap-sys --enable Map lucida.map in terminal All is fine with plain TeX, I can use my lucida fonts. I copied all my afm and pfb files in a directory then I typed texfont --fontroot=/Users/Ericd/library/texmf --ve=bh -- co=lucida --ma --in --expert from this directory in terminal. (don't understand the --ma --in -- expert things) It made a lot of job, map files, tfm files. The texnansi-bh-lucida test file seems to work (it's a long task, I only asked to shox LucidaBright). BUT \usetypescript[lucida][texnansi] \setupbodyfont[lucida,10pt] doesn' show me Lucida in my pdf. What did I do wrong ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Strange behaviour with tikz
Hello again I don't understand a strange thing. Patterns in tikz become black in some case. Here is a minimal example : *** \usemodule[tikz] \usetikzlibrary[patterns] \starttext blabla \chapter {blabla} \starttikzpicture \draw [pattern=north west lines](0,0) rectangle +(1,2); \stoptikzpicture \stoptext * Without any text before the chapter or without the chapter command I see the patterns. With these commands I just see a black rectangle. Can I get my patterns back ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Lucida again on mac osx
I sent this message last week. * Hello I know that I disturb a lot this list, please forgive me. I tried to install a new mac. I donwloaded mactex (2008) I installed lucida fons in ~/Library/texmf/ then I typed sudo mktexlsr and sudo updmap-sys --enable Map lucida.map in terminal All is fine with plain TeX, I can use my lucida fonts. I copied all my afm and pfb files in a directory then I typed texfont --fontroot=/Users/Ericd/library/texmf --ve=bh -- co=lucida --ma --in --expert from this directory in terminal. (don't understand the --ma --in -- expert things) It made a lot of job, map files, tfm files. The texnansi-bh-lucida test file seems to work (it's a long task, I only asked to show LucidaBright). BUT \usetypescript[lucida][texnansi] \setupbodyfont[lucida,10pt] doesn' show me Lucida in my pdf. What did I do wrong ? * Since I installed mactex 2006 and it went right (but cmr is uggly, there are not any ligature, first is written rst) The same happens to my main computer : I use mactex 2007, everything goes well ; I tried to install mactex 2008 and, again, the lucida fonts are replaced by computer modern (or latin modern ?) All my fonts afm, tfm and so on are local, in the ~/Library/texmf folder. I wish to install mactex 2007 : where can I find it ? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Font problem and font question
Hello again In Context Manual it is said that we can define new fonts. There is an example : \definebodyfont[10pt,11pt,12pt][rm][tfe = Regular at 48pt] I tried the text : *** \definebodyfont[10pt,11pt,12pt][rm][tfe = Regular at 48pt] \starttext \tfe gros texte \stoptext *** and the compiler answers *** ! Undefined control sequence I.5 \tfe gros texte *** I don't understand . Now a font question : is it a way to define casual (or cs) as italic, boldface or handwriting ? I wish to type {\cs casual} to get the world casual written with my LucideCasual font. Thank's for any enlightment ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Inleft text not verticaly aligned
Hello I tried to get some sections without any title and with numbering in the margin. Here is an example of a try I made : %%% \def\CommandQS#1#2{\inleft{\bf \currentheadnumber}} \setuphead[section][alternative=text, command=\CommandQS ] \starttext \section{} $\displaystyle {4 \over \displaystyle {1 \over 3}}$. \stoptext %%% Unfortunately the numbering is aligned with the bottom of the line, not the base line. Is there any cure to this ? Eric DÉTREZ Lycée Faidherbe Lille Maths PC* : http://sites.google.com/site/pc1faidherbe/ Info MP-MP* : http://sites.google.com/site/infofaidherbe/ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Pb with verb-pas
Hello A funny problem When I use pascal verbatim I've got a curious feature (?) Here is a minimal problem \starttext \startPAS i/ 2; nom/ 2; ; \stopPAS \stoptext When I typeset it the i desappear. I only occurs when the / is followed by a space and when the variable before / is made from letters (not followed by a space) It seems it comes from the gestion of comments but I don't understand where it comes from. I could type spaces before / but I need this to type oCaml source code and I changed comments (there are (* . *)) but I also need to refer arrays as t.(i). Eric DÉTREZ Lycée Faidherbe Lille Maths PC* : http://sites.google.com/site/pc1faidherbe/ Info MP-MP* : http://sites.google.com/site/infofaidherbe/ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Pb with verb-pas
Le 10 nov. 08 à 14:31, Taco Hoekwater a écrit : Eric DÉTREZ wrote: Hello A funny problem When I use pascal verbatim I've got a curious feature (?) bug. Here is the fix: --- verb-pas.tex.orig 2004-09-05 02:34:26.0 +0200 +++ verb-pas.tex 2008-11-10 14:27:19.147979056 +0100 @@ -94,7 +94,8 @@ {\handlenextnextpretty\doPAStypefourthree\PLtypefourtwo} \gdef\doPAStypefourthree#1#2% - {\ifinPLcomment + {\endPLtypesix + \ifinPLcomment \let\next=\PLtypefourtwo \else \ifinPLsingle Waouh Wonderful ! It works fine. Thank's, thank's, thank's, thank's, thank's Eric DÉTREZ Lycée Faidherbe Lille Maths PC* : http://sites.google.com/site/pc1faidherbe/ Info MP-MP* : http://sites.google.com/site/infofaidherbe/ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] What do you miss in ConTeXt?
Wolfgang Schuster schuster.wolfg...@googlemail.com a écrit : Hi all, ConTeXt has many features but sometimes there is something missing, what feature or package do you miss which is already available in another TeX system or unavailable in any TeX system? Indeed I miss a huge documentation. A very good one is the documentation for Tikz : starts with case- studies then encyclopaedic définitions. Maybe a less supra-human task : a site with example as texample (always for tikz) : http://www.texample.net/ . We learn a lot seeing the way others do. Eric DÉTREZ Maths PC* Info MP* Lycée Faidherbe Lille ___ 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 ___
Re: [NTG-context] Colored descriptions
Le 03-08-2015 16:15, Procházka Lukáš Ing. - Pontex s. r. o. a écrit : Hello, On Mon, 03 Aug 2015 15:31:49 +0200, Eric Détrez i...@eric-detrez.fr wrote: I wish to write a text where there are definitions, theorems, ... I wish to get a table of definitions at the end so I think the right tool is description. But I want the head or/and the main text have colored background. Is it possible ? there was a similar discussion - see http://www.ntg.nl/pipermail/ntg-context/2015/081528.html Best regards, Lukas Thank you, I didn't fint it before. So I can't put a startxxx in inbetween, it must be in before. More : a placelist[description] is no longer effective if there are sections and chapters :( So I have to use a register : is there a way to get the title of a description, something like #1 or /descriptiontitle ? -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
Re: [NTG-context] \installprettytype problem
Le 21-08-2015 00:21, Renaud AUBIN a écrit : Bonsoir Matthieu, Give a try to https://github.com/nibua-r/pretty-c and tell me if anything goes wrong… It's basically a rewrite of Peter's module adapted to mkiv + new verbatim (new at the time of writing) Le 20 août 2015 10:43 PM, Matthieu Leroy matt57.le...@orange.fr a écrit : Hello, I want to use the C-Pretty-Printing module. According to the Verbatim page of the Context garden, I have to use the \installprettytype command, but this one doesn't work (error : undefined control sequence). Nobody did mention the use of vim package ? You have to installe vim in your system The package asks vim to get the lexed source code. Next the package color it. It doesn't seem obvious to change the colors. Doc at http://modules.contextgarden.net/dl/t-vim/doc/context/third/vim/vim.txt \usemodule[vim] \definevimtyping [C] [syntax=c] \starttext \startC int func(int a){ if(a 4) return 0; // comment else/* comment */ return 10; } \stopC \stoptext -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
[NTG-context] Expand a part of TOC
hello Here is my problem : I wish to write a TOC at the beginning of each chapter (that I can do). But I want it to write every chapter and only the sections and subsections of the current chapter. Like, at the head of chapter 3 (the style is not relevant) Chapter 1 1 Chapter 2 15 Chapter 3 23 3.1 ...23 3.2 ...26 3.3 ...29 3.3.1 .29 3.3.2 .33 3.3.3 .36 Chapter 4 38 I tried to combine 2 lists with differents criterium but it doesn't seems to work. Thank's for any indication ; I'll write the result in the wiki. -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
[NTG-context] noheaderandfooterlines messes with colors
Here is a minimal example : \usemodule[tikz] \starttext \noheaderandfooterlines \starttikzpicture \draw(0,2) node[color=red]{This should be red}; \draw(0,0) node[color=red]{This is red}; \stoptikzpicture \stoptext The first line is written in black but when I comment \noheaderandfooterlines both lines are red This seems a curious effect The goal is to get a nice front page with tikz drawings and text at the right place. Please don't tell me to use metaFun. -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
Re: [NTG-context] noheaderandfooterlines messes with colors
Le 01-08-2015 22:32, Aditya Mahajan a écrit : On Sat, 1 Aug 2015, Eric Détrez wrote: Here is a minimal example : \usemodule[tikz] \starttext \noheaderandfooterlines \starttikzpicture \draw(0,2) node[color=red]{This should be red}; \draw(0,0) node[color=red]{This is red}; \stoptikzpicture \stoptext The first line is written in black but when I comment \noheaderandfooterlines both lines are red This seems a curious effect Using \forcecolorhack works for this example: \starttikzpicture \forcecolorhack \draw(0,2) node[color=red]{This should be red}; \draw(0,0) node[color=red]{This is red}; \stoptikzpicture Aditya It seems there is a problem : tex errortex error on line 3 in file /home/ericd13/documents/Context/essaicouleur.tex: ! Leaders not followed by proper glue to be read again \hskip \forcecolorhack -\leaders \hrule \hskip \zeropoint \relax I use context minimal -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
[NTG-context] Colored descriptions
I wish to write a text where there are definitions, theorems, ... I wish to get a table of definitions at the end so I think the right tool is description. But I want the head or/and the main text have colored background. Is it possible ? I tried inbetween=\startframedtext,after=\stopframedtext in the \setupdescriptions but this lead to an error Missing } inserted -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
Re: [NTG-context] How not to print the chapter number
Le 07-08-2015 15:04, Eric Détrez a écrit : I wish to print my texte as I Foo 1 Bar one 1.1 barbar one 1.2 barbar two 2 Bar two 2.1 foofoo one 2.2 foofoo two I don't want the Roman I printed in the numbering. With contextmark II I just added \setupsection[section-3][previousnumber=no] but it doesn't seem to work in mark IV. Is there a way to do it ? An answer (in the mailing-list archives) and also in the wiki (I didn't read it well enough) \setuphead[section][sectionsegments=section] \setuphead[subsection][sectionsegments=section:subsection] \setuphead[subsubsection][sectionsegments=section:subsubsection] \starttext \chapter{Eric} \section{Foo 1} \subsection{Bar one} \subsubsection{Barbar one } \subsubsection{Barbar two} \subsection{Bar two} \subsubsection{Barbar one} \subsubsection{Barbar two} \section{Foo 2} \subsection{Bar one} \subsubsection{Barbar one} \subsubsection{Barbar two} \stoptext As once you changed one you have to change the lower ones ... -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
[NTG-context] How not to print the chapter number
I wish to print my texte as I Foo 1 Bar one 1.1 barbar one 1.2 barbar two 2 Bar two 2.1 foofoo one 2.2 foofoo two I don't want the Roman I printed in the numbering. With contextmark II I just added \setupsection[section-3][previousnumber=no] but it doesn't seem to work in mark IV. Is there a way to do it ? -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
Re: [NTG-context] where are the pret-xxxx.lua ?
Le 17-07-2015 14:58, Wolfgang Schuster a écrit : Eric Détrez 17. Juli 2015 09:27 I wish to print some highlighted source codes. The Context garden says There are already some formatters for several programming languages in the ConTeXt distribution. I can see the verb- (for mkII) but no pret-xxx (for mkIV) in the base folder. Is it possible to get syntax highlight in mkIV ? You can enable syntax highlighting for TeX, Lua, XML and MetaPost with MkIV. To enable the option pass option=...” to the \starttyping command or create your own environment with the \definetyping command. OK Thank you for the working example. But my question asked where are the config files : I want to get a Python pretty-printing. The module abr-01 seems the key but I couldn't find it. It seems that the answer could be in the t-vim (third party) module. It uses the syntax analysis from VIm (you have to install it :)) -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
[NTG-context] where are the pret-xxxx.lua ?
I wish to print some highlighted source codes. The Context garden says There are already some formatters for several programming languages in the ConTeXt distribution. I can see the verb- (for mkII) but no pret-xxx (for mkIV) in the base folder. Is it possible to get syntax highlight in mkIV ? -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
[NTG-context] Title of parts
By default \part generates no title because most of the times these require special attention and a specific design. I can't find how to write such a specific design. -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
Re: [NTG-context] Title of parts
Le 30-08-2015 23:31, Alan BRASLAU a écrit : You might find the following setups useful with parts: \definestructureresetset [default] [0,0] [1] % do not reset parts and chapters \setuphead [part] [sectionresetset=default, conversion=Romannumerals, placehead=yes, bodypartlabel=part] Also, using parts, you might also need to add part to the table of contents list. etc. Thank you I didn't know the placehead parameter, I missed it in the long list of parameters. -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
Re: [NTG-context] Problem with lucida fonts (again)
On 6/28/2017 9:21 AM, Eric Détrez wrote: Here is an exemple, I show size 30 to see the differences but the size doesn't change the behaviour. \starttext \setupbodyfont[30pt] texte $math$ \setupbodyfont[lucidaot,30pt] texte $math$ \setupbodyfont[lucida,30pt] texte $math$ \stoptext I join 2 pdf with an "old" version of context (texlive 2016) and the last stable. Le 29-06-2017 09:56, Hans Hagen a écrit : i fixed something in the next beta for these type 1 fonts (with slightly weird encodings) I didn't have the open type lucidas, had to buy them. They work fine ** \starttext \setupbodyfont[30pt] texte $math'$ \setupbodyfont[lucidaot,30pt] texte $math'$ \setupbodyfont[lucida,30pt] texte $math'$ \stoptext ** The ' was ugly in the "stable " version (too high) for lucidas, much better now. But the Lucida's text is still crappy in type1 version. So ... I guess type1 fonts are messy (Lucida's or all of them ?) -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr sansnom-3.pdf Description: Adobe PDF document ___ 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 ___
[NTG-context] Problem with lucida fonts (again)
Hello I already had this problem with lucida fonts. When I type text the letter are shifted : "b" becomes "a", "c" becomes "b", ... I solved it with using the stable version. I updated my system and I downloaded again context-minimal. The problem came back with both versions (last or stable). ConTeXt ver: 2017.05.15 21:48 MKIV beta fmt: 2017.6.27 int: english/english ConTeXt ver: 2017.06.27 18:05 MKIV beta fmt: 2017.6.27 int: english/english If I use the tex-live version all is fine ConTeXt ver: 2016.05.17 19:20 MKIV current fmt: 2017.6.27 int: english/english It seems current version does provide a beta. I'm afraid I'll can use Lucida soon -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
[NTG-context] A solved problem
Hello Just a message to explain a problem I had and the answer. The trouble : the big parenthesis were not big, $($ and $\bigl($ gave the same shape The fix : I defined my own environment in which I defined very big font sizes. \definefontsize[e] \definebodyfontenvironment [default] [e=4] One of them was \definefontsize[g] I changed it to \definefontsize[gg] and all went right again The explanation (?) : maybe \big was read \bi (bold italic) with size g I had this problem for 2 years, I'm happy to have figured it now. -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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] Problem with lucida fonts (again)
Le 27-06-2017 23:00, Henri Menke a écrit : You're this guy, right? https://mailman.ntg.nl/pipermail/ntg-context/2016/087522.html https://tex.stackexchange.com/questions/338849 Sorry, but as last time, we can't help you without you posting a reproducible example. The following works fine for me on TL2016, TL2017, and latest beta. \setupbodyfont[lucidaot] \starttext \input knuth \stoptext Here is an exemple, I show size 30 to see the differences but the size doesn't change the behaviour. \starttext \setupbodyfont[30pt] texte $math$ \setupbodyfont[lucidaot,30pt] texte $math$ \setupbodyfont[lucida,30pt] texte $math$ \stoptext I join 2 pdf with an "old" version of context (texlive 2016) and the last stable. You'll see that lucidaot has an effect, it uses cm fonts but without italic in math lucida shifts lhe letters in text, not in math. -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr stable-05-2017.pdf Description: Adobe PDF document TL-2016.pdf Description: Adobe PDF document ___ 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 ___
[NTG-context] Use Visual studio code
Hello Is it possible to use VScode as IDE for ConTeXt ? -- Eric Détrez Informatique Lycée Faidherbe, Lille Documents de cours en pdf : eric-detrez.fr ___ 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] tikz
Le 27-11-2019 16:42, Ursula Hermann a écrit : Hello everyone! I have: \usemodule{tikz} \starttext \starttikzpicture node {root} child {node {left}} child {node {right} child {node {child}} child {node {child}} } \stoptikzpicture \stoptext Lot of errors \usemodule[tikz] % [] instead of {} \node % you forgot \ you must end with ; before \stoptikzpicture -- Eric Détrez Informatique Lycée Faidherbe, Lille Documents de cours en pdf : faidherbe.org/~informatique ___ 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 ___