[NTG-context] New tmf files?
Taco et al, There was some discussion before this current release about including more tmf files. I downloaded the latest cont-tfm.zip, but see no evidence of more tmf files. Is that still a future project? I updated Context via Gerben's updater and I just installed the Latin modern fonts from Gerben's site about a week and a half ago. Should I be good to go for a while? David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beginners manual
On 11/26/05, Hans Hagen [EMAIL PROTECTED] wrote: Hi, I 'reorganized' (split) the beginners manual and put it in svn, so anyone who is willing to translate can check out a copy. I didn't yet change anything (only the file structure etc) and the styles need a cleanup (more modern setup). Because each chapter now has its own file, we can (as suggested on this list) edit piecewise. Don't start yet. First we need to add/remove things and rewrite chapters. But you can try to compile the file. Just tried to compile: $ texexec --pdf ma-cb-en and I got: [skip] (/work/apps/teTeX/share/texmf-local/tex/context/base/type-buy.tex))kpathsea: Running mktextfm uplr8t mktextfm: Running mf-nowin -progname=mf \mode:=ljfive; mag:=1; nonstopmode; input uplr8t This is METAFONT, Version 2.71828 (Web2C 7.5.4) kpathsea: Running mktexmf uplr8t ! I can't find file `uplr8t'. * ...:=ljfive; mag:=1; nonstopmode; input uplr8t Please type another input file name ! Emergency stop. * ...:=ljfive; mag:=1; nonstopmode; input uplr8t Transcript written on mfput.log. grep: uplr8t.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfive; mag:=1; nonstopmode; input uplr8t' failed to make uplr8t.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*palatino12ptrmtf*:=uplr8t at 12.0pt not loadable: Metric (TFM) file no t found. to be read again \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi inserted text ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... argument \getvalue [EMAIL PROTECTED]@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.65 \setupbodyfont[palatino,10pt] ? end My ConTeXt: $ texexec --version TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5) context : ver: 2005.11.24 cont-en : ver: 2005.11.24 fmt: 2005.11.24 mes: english total run time : 1 seconds I'm wrong my compiling command ? Thank you, -- http://vnoss.org Vietnamese Open Source Software Community ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Referencing in Project Structure
David Arnold wrote: In each section, I would like numbering of theorems, definitions, examples, equations, etc, to be consecutive and include the section number as a prefix. For example, if a theorem happens to appear first, then number it 1.1, the next three equations (1.2), (1.3), and (1.4), the next two examples 1.5 and 1.6, the next two equations (1.7) and (1.8), the next definition 1.9, the next theorem 1.10, the next three equations (1.11), (1.12), and (1.13), the next example 1.14, etc. How do I set this up in bookenv? By reading cont-enp.pdf? There's a lot of information in there and it has a pretty good index. Use the way=x setting, as in: \setupformulas[way=bychapter] (or way=bysection if that's really how you want to number it). nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: Getting texfont to do batch installs on gwTeX (was Re: [NTG-context] Palatino)
David Arnold wrote: Hans et al, Changing each occurrence of TEXMFMAIN in type-tmf.dat to TEXMFMAIN,TEXMFTE,TEXMFGW produces the following result: At a first glance, that looked fine. But I still have to catch up on a lot of e-mail ;-) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New tmf files?
David Arnold wrote: Taco et al, There was some discussion before this current release about including more tmf files. I downloaded the latest cont-tfm.zip, but see no evidence of more tmf files. Is that still a future project? They are in a separate file. I do not know whether Gerben will eventually make that available through the i-installer as well, but for the moment, the zip file is here: http://www.pragma-ade.com/context/current/cont-fnt.zip I updated Context via Gerben's updater and I just installed the Latin modern fonts from Gerben's site about a week and a half ago. Should I be good to go for a while? Yes, should be fine. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Where is \typescriptthree documented?
David Arnold wrote: All, I don't understand \typescriptthree. Where is it documented? What does it mean? I'm not sure that it is documented, but it is the value of the third argument of \starttypescript, and it valid until \stoptypescipt. If the actual argument was a list, then context will loop over each item in the list, each time with the next value in \typescriptthree. Similar commands are available for \typescriptone and \typescripttwo. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beginners manual
VnPenguin wrote: Just tried to compile: $ texexec --pdf ma-cb-en and I got: [skip] Hi, Please read the beginning of the mfont.tex from manuals thread (http://archive.contextgarden.net). It is the exact same error David Arnold had. Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beginners manual
On 11/26/05, Taco Hoekwater [EMAIL PROTECTED] wrote: VnPenguin wrote: Just tried to compile: $ texexec --pdf ma-cb-en and I got: [skip] Hi, Please read the beginning of the mfont.tex from manuals thread (http://archive.contextgarden.net). It is the exact same error David Arnold had. Thanks, it's ok. But I have to add: \usemodule[abr-01] into ma-cb-abbreviations.tex in order to fix error \ASCII non defined. Regards, -- http://vnoss.org Vietnamese Open Source Software Community ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] No partial contents for parts after the first
Friday, November 25, 2005 Giuseppe Bilotta wrote: Thursday, November 24, 2005 Giuseppe Bilotta wrote: I'm using the latest ConTeXt reported here, and I'm noticing that partial contents for the second, third etc part are not available. I have a bunch of files each of which goes like \part{some part} Some text (not always) \placecontent \chapter{some chapter} Each of this file is \input from the master file. However, only in the first part you actually see the (part-specific) content: every other part reports system : part,chapter,section,subsection not found/processed The setup for the contents is as follows: \setupcombinedlist[content] [interaction=all, partnumber=no, alternative=c, level=subsection] \setuphead[part][alternative=middle,placehead=yes,resetnumber=no] The problem is the 'resetnumber': if I take that off, everything works perfectly. I've been debugging this, and the reason for the thing not coming up for parts after the first is that when resetnumber=no the current level is not properly detected: in one case you get \currentlevel -:1 in the other \currentlevel -:2:2:4:2 Which is obviously wrong. Indeed, the problem is here: \listentry{part}{1}{1}{Introduction}{2::1:0:0:0:0:0:0::7}{8} \listentry{chapter}{2}{1}{Presentation}{2::1:1:0:0:0:0:0::8}{9} \listentry{section}{3}{1.1}{History and motivation}{2::1:1:1:0:0:0:0::8}{9} \listentry{chapter}{11}{2}{The basics}{2::1:2:0:0:0:0:0::12}{13} \listentry{section}{12}{2.1}{Notation}{2::1:2:1:0:0:0:0::12}{13} (more stuff) \listentry{subsection}{78}{2.4.2}{Scaling the coordinate system}{2::1:2:4:2:0:0:0::31}{32} \listentry{part}{79}{2}{Mathematical tools}{2::2:2:4:2:0:0:0::34}{35} \listentry{chapter}{82}{3}{Bézier cubic analysis}{2::2:3:0:0:0:0:0::35}{36} OOOPSIE! Since resetnumber=no, the listentry keeps the old settings for chapter, section the like. This is obviously wrong. Even if the number is not reset, the sectionformat *must* be reset, since at the beginning of the new higher section(level) you are not in the previous one anymore. So for example when starting a new part (with resetnumber=no), and until the first chapter of the new part is started we are in chapter 0 for that part, not in chapter 'last-chapter-from-previous-part'. Can this be fixed? Ok, I came up with a solution that seems to work: \def\definesection[#1]% {\doifundefined{\??se#1} {\doifelsenothing\firstsection {\def\firstsection{#1}% \setevalue{\??se#1\c!before}{\v!text}% \setevalue{\??se\v!text\c!after}{#1}} {\setevalue{\??se\commalistelement\c!after}{#1}% \setevalue{\??se#1\c!before}{\lastsection}% \setevalue{\??se\lastsection\c!after}{#1}}% \advance\nofsections \plusone \setevalue{\??se#1\c!level}{\the\nofsections}% \letvalue{\??se#1\c!after}\empty \setvalue{\e!next#1}{\@@nextsectionnumber{#1}}% \setvalue{#1\c!number}{\@@longsectionnumber{#1}}% \setvalue{#1\s!format}{\@@longformatnumber{#1}}% \setevalue{\??by#1}{#1}% \setevalue{\??by\v!by#1}{#1}% \makecounter{\??se#1}% \makecounter{\??se lastvalueof#1}% GB \edef\lastsection{#1}% \setvalue{\??sk#1}{#1}% \letvalue{\??se#1\c!marking}\empty \setupsection[#1][\c!previousnumber=\v!yes]}}% % New command preserves the value of the next sectionlevel % when resetnumber=no \def\checkpreservevalueafter#1% {\ifnum\getvalue{\??se#1\c!level}\the\nofsections \edef\preservedsection{\getvalue{\??se#1\c!after}}% \ifconditional\@@resetsubheadnumbers \setcounter{\??se lastvalueof\preservedsection}% {0}% \else \setcounter{\??se lastvalueof\preservedsection}% {\countervalue{\??se\preservedsection}}% \fi \fi} \def\@@setsectionnumber#1#2% {\letgvalueempty{\??se#1\s!start}% signal i.p.v. boolean \setcounter{\??se#1}{#2}% \checkpreservevalueafter{#1} \resetsectioncounters{#1} \checkpagecounter} \def\@@nextsectionnumber#1% {\letgvalueempty{\??se#1\s!start}% signal i.p.v. boolean \ifnum\countervalue{\??se lastvalueof#1}\zerocount \setcounter{\??se#1}{\countervalue{\??se lastvalueof#1}} \setcounter{\??se lastvalueof#1}{0} \fi \pluscounter{\??se#1}% \checkpreservevalueafter{#1} \resetsectioncounters{#1} \checkpagecounter} This has been tested in a fairly complex document (some levels with resetnumber=no, some with the usual resetnumber; sectionblocks etc). It works, and fixes the placecontent not working. Will this go into mainline? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New tmf files?
On 26 Nov 2005, at 11:49, Taco Hoekwater wrote: David Arnold wrote: Taco et al, There was some discussion before this current release about including more tmf files. I downloaded the latest cont-tfm.zip, but see no evidence of more tmf files. Is that still a future project? They are in a separate file. I do not know whether Gerben will eventually make that available through the i-installer as well, but for the moment, the zip file is here: http://www.pragma-ade.com/context/current/cont-fnt.zip Easy enough to add this to the updater. I have added it to my update script, so the next ConTeXt release will have this as part of the tree. As I combine the stuff in one or two archives, I might in the future have to let the updater follow the division that ConTeXt uses (-ext, -fnt, etc.), but that is for later. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New tmf files?
Gerben, Does this mean that if I wait the 24-hr period and use Context updater again, I will get these? On Nov 26, 2005, at 6:28 AM, Gerben Wierda wrote: On 26 Nov 2005, at 11:49, Taco Hoekwater wrote: David Arnold wrote: Taco et al, There was some discussion before this current release about including more tmf files. I downloaded the latest cont-tfm.zip, but see no evidence of more tmf files. Is that still a future project? They are in a separate file. I do not know whether Gerben will eventually make that available through the i-installer as well, but for the moment, the zip file is here: http://www.pragma-ade.com/context/current/cont-fnt.zip Easy enough to add this to the updater. I have added it to my update script, so the next ConTeXt release will have this as part of the tree. As I combine the stuff in one or two archives, I might in the future have to let the updater follow the division that ConTeXt uses (-ext, -fnt, etc.), but that is for later. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] svn manuals
Hans, Taco, et al, I think it would be a good idea (possibly saving you a lot of list answering time) if you put a README file in each manual directory. This could contain instructions such as: 1. Which is the main file to compile. 2. Some font handling instructions. Maybe a reminder of what to do with texfont and type-tfm.dat on different systems. User would be handy in getting this right. 3. Or, as font setups head to an environment file, maybe alternate environment files could be provided to get a plain vanilla no other fonts other than what is supplied with cont-fnt.zip. Hopefully, other on this list can come up with other suggestions for the README. I've just named a few that I know will help me. David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beginners manual
Hans, Taco, et al, It's time for me to wax philosophic on the beginner's manual. I've read a few posts to this list, and tried to think back to my experience, and looked at my troubles now, but I haven't reread the beginner's manual as yet. That I will do in the upcoming weeks. My first thought is this: In my opinion, the beginner's manual remains one of very best sources for Context. My second thought is the fact that this is a beginner's manual in every sense of the word. That is, you need to be very careful with what goes into the manual. Truly, a guiding principle should be: What does a beginner need to see? Think of a user who is beginning with a blank slate, or alternatively, think of a user who's been gone for a while (I've qualified for this category on several occasions and revisiting the beginner's manual has always been helpful). What does this user need to see? And what does this user need to be protected from? First and foremost, you've got to make sure that users on different platforms have a good install of Context. This could be a set of appendices: Appendix A -- Installation on Windows, Appendix B -- Installation on Linux, Appendix C -- Installation on Mac OS. Again, users could be very helpful in testing these instructions. This is a beginner's manual, so it would be helpful if these instructions were of the Quick Start variety, as involved instructions will only serve to frustrate the beginner. Of course, these instructions should include a Hello, World! example in order to test for a valid installation. Whenever I teach a new concept in mathematics, I'm faced with a choice of two directions. I can start with the concept, then give examples. Or I can do some examples, then discuss the abstraction at a higher level. I am constantly forgetting that the second method is usually a better choice for my students. For example, suppose that I want to show that any multiple of an eigenvector is again an eigenvector of a given matrix. I can first prove it in the abstract (A (cx)=c(Ax)=c(lx)=l(cx)), then give examples. Alternatively, I can put a little 2x2 matrix on the board, find the eigenvectors, then demonstrate that multiples of the eigenvectors are again eigenvectors. Once the students have the idea, then I can put up the abstraction of the general proof. A reference manual is an example of the first method, a beginner's manual should follow the second method. It's easier, in my opinion, to learn by example, to learn by doing. Topics should be included or excluded based on a guiding principle: What does a beginner need to know to get started? It will be tempting to include using a different font, or talk about interactive documents, etc, but these are advanced topics, which belong in separate manuals where space and time will do them justice. Indeed, what is truly needed is a separate beginner's manual on interactive documents. Layout really threw me for a loss the first time (and times thereafter) I went through the beginner's manual. I was confronted with terms (cutspace, backspace) that might be familiar to typographers, but I had no clue what they meant. I can remember spending countless hours tweaking layout parameters, printing, then measuring with a ruler, only to scratch my head when I did not get predicted results. To this day, I am still not completely sure what I am doing in this area. I think what is needed in the beginner's manual is an image similar to Patrick's \ShowLayout result from his t- layout module. Secondly, it would be time well spent to build an improved \showframe command. Perhaps this even exists, but I am not aware of it. It needs to provide accurate measurements, even when printed and the rulers come out. Perhaps if a user included the \showframe command, a trigger of some sort could change the size of the paper that the document is typeset on, with an outline of the actual paper size, and the edges, margins, headers, etc, all framed and in view, even if they lie outside the actual paper outline. List users can help to make sure that the manual is free of errors. If something doesn't work, this is much more upsetting to a beginner than a seasoned user. A seasoned user might say oh, that's just a typo, do this, but a beginner has an entirely different reaction on an entirely different emotional level. Troubleshooting should get some time in the beginner's manual. People coming from a Word environment are not going to understand what is going on when a compilation halts. Seasoned TeX users know about typing h, x, s, e, etc, but people who've never seen TeX before are going to freak out. So, some time should be spent on troubleshooting. Or, a conscious decision has to be made: Will we assume that all beginners in Context have TeX experience? So, I advise, stick to the basics. Get the user started. Ask yourself
Re: [NTG-context] New tmf files?
On 26 Nov 2005, at 18:50, David Arnold wrote: Gerben, Does this mean that if I wait the 24-hr period and use Context updater again, I will get these? On Nov 26, 2005, at 6:28 AM, Gerben Wierda wrote: On 26 Nov 2005, at 11:49, Taco Hoekwater wrote: David Arnold wrote: Taco et al, There was some discussion before this current release about including more tmf files. I downloaded the latest cont-tfm.zip, but see no evidence of more tmf files. Is that still a future project? They are in a separate file. I do not know whether Gerben will eventually make that available through the i-installer as well, but for the moment, the zip file is here: http://www.pragma-ade.com/context/current/cont-fnt.zip Easy enough to add this to the updater. I have added it to my update script, so the next ConTeXt release will have this as part of the tree. As I combine the stuff in one or two archives, I might in the future have to let the updater follow the division that ConTeXt uses (-ext, -fnt, etc.), but that is for later. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New tmf files?
On 26 Nov 2005, at 18:50, David Arnold wrote: Gerben, Does this mean that if I wait the 24-hr period and use Context updater again, I will get these? Only if ConTeXt itself is updated. But in this case I just triggered a rebuild by hand. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Arithmetic Macros
All, Does anyone have any macros for typesetting common arithmetic explanations, such as +, -, x, and /? Like: 123 +456 _ 579 Or: 21 25) 527 50 __ 27 25 ___ 2 David ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Disappearing characters in \typefile
For my current e-book project I use \typefile to import some TeX files as examples. The syntax is color coded which is very useful. Unfortunately on my screen at least the % character is in yellow so faint as to be unreadable. So I dug into the source code and discovered that the name for this color is colorprettyfour. I changed it thus: \definecolor [colorprettyfour][r=..8, g=.4,b=.2] This gives a light brown which is not pretty but at least is readable on my monitor and hopefully on others. John Culleton ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beginners manual
Hi Hans et al, Just tried to compile ma-cb-en with T5. Here are some remarks: 1. \def\TitlePage#1#2#3 in file ma-cb-style.tex does not work with T5. Because of \definedfont[SansBold at 40pt] I lossed so many vietnamese accented characters. I have to change to \switchtobodyfont[40pt]\bf in order to make T5 work. I think the file ma-cb-style.tex needs more attention for multi-lang support. 2. In file ma-cb-en-document.tex : ... \CONTEXT\ expects a plain \ASCII\ input file. Of course you can use any texteditor or wordprocessor you want, but you should not forget that \CONTEXT\ can only read \ASCII\ input. Most texteditors or wordprocessors can export your file as plain \ASCII. ... What do you think about a plain text input file in UTF-8 charset ? It's not ASCII by definition, but the current ConTeXt (pdfetex) can work with it no problem. All my works with ConTeXt are prepared in UTF-8 input file. That's all for now. Thank you for your work, Regards, -- http://vnoss.org Vietnamese Open Source Software Community ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context