[NTG-context] Source and Result Side by Side
Hi all, I'm wondering how I can achieve the effect similar to that in books like The LaTeX Companion, where the source and the final result are placed side by side in two boxes. Thanks! Helin -- Helin (Colin) Gai Class of 2009, Duke University Box 96332 Durham, NC 27708 Phone: 919-943-6302 helin.gai at gmail.com hg9 at duke.edu ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Newbie question: math font and bibliography
> Date: Mon, 12 Feb 2007 08:19:38 +0100 > From: Taco Hoekwater <[EMAIL PROTECTED]> > Subject: Re: [NTG-context] Newbie question: math font and bibliography > To: mailing list for ConTeXt users > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Zulkifli Hidayat wrote: >>> >>>Dear Taco, >>>I'm sorry if made myself not clear and for the noise about the upright >>> and >>>italic bold math. I found that it works. >>> >>>I have reread the bibliography manual, I think it should be clear enough >>>for me to do some experiments. But there's one thing makes me confuse, >>> how >>>to cite the publications. From all of the publication fields, which one >>>should I use in \cite[1(opt)][2(reference)]? The first bracket is >>>optional, how about the second one? > > The simplest solution is to decide on a global style > >\setuppublications[alternative=apa] % this is actually the default > > other possible values are aps, ams, num, and ssa. > > Then you can just use \cite[key] and the style will decide what field > to pick. > >> I apologize for my dumb questions. > > There is definately no need to apologise. > > Cheers, Taco Thank you. From your simples example, I think I should read the manual more carefully and do some experiments. Furthermore, could you give pointers to style alternatives documentation or links? Yours, Zulkifli ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] test
On Feb 13, 2007, at 10:24 PM, David Arnold wrote: > please ignore this test. Too late. I've already read it. Steve ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] test
All, please ignore this test. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Natural table questions
All, Using natural tales, how can I: 1. get some padding around text in each cell? 2. Increase the height of a cell (or row)? fix the height of a cell (or row)? David Arnold College of the Redwoods Mathematics Department Eureka, CA 95501 (707) 476-4222 http://online.redwoods.edu/instruct/darnold/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Characters per inch with ConTexT
Hi, I am writing a document where the guidelines say that I should use Times Roman font at 10pt with 15 characters per inch and 6 lines per inch. I am using thermes from tex gyre rscaled=1.015 as the bodyfont. At this setting I get a bit more less than 6 lines per inch (which is fine) but roughtly 17 characters per inch. Any way I could setup fonts so that both these criteria is automatically met? Why do people come up with such criteria :(( Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bold versions of fonts
On Feb 13, 2007, at 12:05 PM, Jörg Hagmann wrote: > Let me try again: > After installing the LinLibertine and the Junicode fonts, > everything works (including bolditalic) except the bold version. > > - System: ubuntu, minimal tex/context installation > > - I followed the instructions by T. Schmitz (Practex Journal 2005: > Integrating TrueType Fonts into Context). I.e., using texfont. > > - After compiling the texfont-generated (texnansi-...-junicode.tex) > file, the pdf shows all the fonts (including bold). > > - A testfile stalled with the error message below. After removing > the lines defining the bold version (typescript-file: see > attachment) everything except bold works. Testfile: > \usetypescriptfile[type-junicode] \usetypescript[Junicode] > \setupbodyfont[MyJunicode,12pt] \starttext etc. > > - Replacing the bold ttf, vf, and tfm fonts by those I found on the > fiee website didn't help. > > I suspect that it will turn out to be an embarassing error, but I > couldn't spot it. Thanks for your help, Jörg > > > > Error message: > >> ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.2.4 int: english/ >> english >> . >> >> ! Font \*MyJunicode7ptrmbfrm*:=[Junicode-Bold at 7.0pt not loadable: >> Metric (TF >> M) file not found. >> >> \relax >> \xxdododefinefont ...tspec {#4}\newfontidentifier >>\let >> \localrelativefontsiz... >> >> \dodosettextfamilyB ...amily \fontsize \endcsname >>\else \ifcsname >> \fontclass... >> >> \dosettextfamily ...ttextfamily \scriptscriptfont >>\let \fontbody >> \scriptface... >> ...y \c!tf \dosettextfamily \c!bf >>\dosettextfamily >> \c!sl \do... >> >> \synchronizetext ...athfonts \the \textstrategies >>\fi >> ... >> l.4 \setupbodyfont[MyJunicode,12pt] > %\definefontsynonym [SerifBold] [[Junicode-Bold]%comment this line There is one [ too many in this definition... Don't be too embarrassed, when you've looked at a file or a line for three hours, you don't see anything anymore. Good luck Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] No spacing for typed text in a spaced document
Hello everyone, I use \setupwhitespace[medium] globally but I want to have no spacing between \starttyping and \stoptyping. How do I have to set up this? Thanks in advance, Vyatcheslav Yatskovsky___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \texteuro does not work
Aditya Mahajan wrote: > On Tue, 13 Feb 2007, Mojca Miklavec wrote: > > >> On 2/12/07, Aditya Mahajan wrote: >> >> >>> A question to Hans: I do not know much about fonts, but from what I >>> understand ec is ugly and one should use texnansi. >>> >> What exactly do you mean with "ugly"? >> > > Did I say that I do not know about fonts :) I was just reflecting on > what I have seen on the mailing list. Most problems in fonts with > missing characters etc is due to ec encoding (I remember something in > the past about \textmu not being present in ec). By ugly I meant that > ConTeXt has to work harder behind the scenes to make sure that ec > works. > oh, i thought that you meant the euro, which indeed is a pretty ugly symbol not meant to blend with a properly designed font > In any case, with luatex, TeX's font scene will be totally different > (I know, I know, I should atleast try XeTeX) > Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \startalign and "underline"
On 2/13/07, Aditya Mahajan wrote: > On Tue, 13 Feb 2007, Mojca Miklavec wrote: > > > Hello, > > > > is there a nice way to [mis]use \startalign or combine it with > > something else to typeset equations like the following one (in a > > fixed-width font)? > > fixed-width font? I meant "fixed-width" font while reading the mail, not for typesetting ;) > Then you can just use \starttable with appropriate > setting for distance. Even otherwise you can use starttable with |m| > columns, but I understant math align better. > > > > > a + b = 9 > > a - b = 3 > > ___ > > 2a = 12 > > \noalign is your friend. Here is the first approximation > > \starttext > > \startformula \startalign[n=5] >\NC a \NC + \NC b \NC = \NC 9 \NR >\NC a \NC - \NC b \NC = \NC 3 \NR > \noalign{\hrule} >\NC 2a \NC \NC \NC = \NC 12 \NR > \stopalign \stopformula > > \stoptext > > Hmm... the width of the rule is too long, so lets use something with a > fixed width > > \starttext > > \startformula \startmatrix[n=5] >\NC a \NC + \NC b \NC = \NC 9 \NR >\NC a \NC - \NC b \NC = \NC 3 \NR > \noalign{\hrule} >\NC 2a \NC \NC \NC = \NC 12 \NR > \stopmatrix \stopformula > > \stoptext > > Hmm... distance and alignment are wrong, so lets correct that > > \starttext > > \startformula > > \startmatrix[n=5,distance=.3em,align={right,middle,right,middle,right}] >\NC a \NC + \NC b \NC = \NC 9 \NR >\NC a \NC - \NC b \NC = \NC 3 \NR > \noalign{\hrule} >\NC 2a \NC \NC \NC = \NC 12 \NR > \stopmatrix \stopformula > > \stoptext > > Voila! I did not know that ConTeXt math alignment macros could do > something like this. > > Aditya Wow! That wasn't only a very nice solution, but also a very instructive one. I really need to read your article in Maps again. I've heard about \noalign, but didn't think about using it for a horizontal rule. I've heard about "matrix", but I didn't get the point: I though that \matrix{0&1\cr1&0}-like constructs and \startalign should satisfy my needs ;) Thanks a lot both for your answer and for "forcing Hans" to implement all the possible and impossible math features. I'm now trying to spot the most appropriate place in the wiki tu put that example there, but I really think that you should put it in one if your manuals as a really nice example. Mojca PS: I have another nice math challenge for you or Taco ;) (a hybrid of overline/overrightarrow/vec/"overrigharpoonup" for denoting vectors, but I'll use another thread) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \texteuro does not work
On Tue, 13 Feb 2007, Mojca Miklavec wrote: > On 2/12/07, Aditya Mahajan wrote: > >> A question to Hans: I do not know much about fonts, but from what I >> understand ec is ugly and one should use texnansi. > > What exactly do you mean with "ugly"? Did I say that I do not know about fonts :) I was just reflecting on what I have seen on the mailing list. Most problems in fonts with missing characters etc is due to ec encoding (I remember something in the past about \textmu not being present in ec). By ugly I meant that ConTeXt has to work harder behind the scenes to make sure that ec works. In any case, with luatex, TeX's font scene will be totally different (I know, I know, I should atleast try XeTeX) Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \startalign and "underline"
On Tue, 13 Feb 2007, Mojca Miklavec wrote: > Hello, > > is there a nice way to [mis]use \startalign or combine it with > something else to typeset equations like the following one (in a > fixed-width font)? fixed-width font? Then you can just use \starttable with appropriate setting for distance. Even otherwise you can use starttable with |m| columns, but I understant math align better. > > a + b = 9 > a - b = 3 > ___ > 2a = 12 \noalign is your friend. Here is the first approximation \starttext \startformula \startalign[n=5] \NC a \NC + \NC b \NC = \NC 9 \NR \NC a \NC - \NC b \NC = \NC 3 \NR \noalign{\hrule} \NC 2a \NC \NC \NC = \NC 12 \NR \stopalign \stopformula \stoptext Hmm... the width of the rule is too long, so lets use something with a fixed width \starttext \startformula \startmatrix[n=5] \NC a \NC + \NC b \NC = \NC 9 \NR \NC a \NC - \NC b \NC = \NC 3 \NR \noalign{\hrule} \NC 2a \NC \NC \NC = \NC 12 \NR \stopmatrix \stopformula \stoptext Hmm... distance and alignment are wrong, so lets correct that \starttext \startformula \startmatrix[n=5,distance=.3em,align={right,middle,right,middle,right}] \NC a \NC + \NC b \NC = \NC 9 \NR \NC a \NC - \NC b \NC = \NC 3 \NR \noalign{\hrule} \NC 2a \NC \NC \NC = \NC 12 \NR \stopmatrix \stopformula \stoptext Voila! I did not know that ConTeXt math alignment macros could do something like this. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \texteuro does not work
Thomas A. Schmitz wrote: > On Feb 13, 2007, at 1:44 PM, Mojca Miklavec wrote: > > >> Maybe not for English and German users. But most other (European) >> languages need EC to cover all their letters (i.e. to make hyphenation >> work at all). >> >> Although not all languages are listed there, take a look into lang- >> ctx.tex. >> >> > > I haven't really looked into this, but I think you're slightly > exaggerating: Italian, French, Spanish, Portuguese, Dutch should be > OK with texnansi, too. > most patterns in their original form assume ec; however, context uses utf encoded patterns, and can load them then for as many encodings as you like; some languages have ec and texnansi patterns (has to do with the fact that patterns and fonts are related) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \texteuro does not work
On Feb 13, 2007, at 1:44 PM, Mojca Miklavec wrote: > Maybe not for English and German users. But most other (European) > languages need EC to cover all their letters (i.e. to make hyphenation > work at all). > > Although not all languages are listed there, take a look into lang- > ctx.tex. > I haven't really looked into this, but I think you're slightly exaggerating: Italian, French, Spanish, Portuguese, Dutch should be OK with texnansi, too. Cheers Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \startalign and "underline"
Hello, is there a nice way to [mis]use \startalign or combine it with something else to typeset equations like the following one (in a fixed-width font)? a + b = 9 a - b = 3 ___ 2a = 12 Thanks for any hints, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] edge+text figure
With the help of details.pdf, I have managed to define edgefigures that use the margin and goes into the text and if it is wide enough (criterium=xxx) becomes a normal figure. Is it possible to make an even wider figure use both the textwidth and the margin? I have tried to illustrate what I want below, a figure is placed as f1 until criterium is met, then it is placed like f2, and I would like to know how to achieve f3. It is not necessary that it is called the same thing and automatic, they are easily identified before. Regards, Johan f2f2f2 f1f1 a f2f2f2 f1f1 a f3f3f3f3f3 f3f3f3f3f3 -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \texteuro does not work
On 2/12/07, Aditya Mahajan wrote: > A question to Hans: I do not know much about fonts, but from what I > understand ec is ugly and one should use texnansi. What exactly do you mean with "ugly"? > So why does ConTeXt > default to ec. I am sure that for most users like, fonts in TeX is a > mystry, Probably true. > and they do not really care which font encoding is used, as > long as it works. Maybe not for English and German users. But most other (European) languages need EC to cover all their letters (i.e. to make hyphenation work at all). Although not all languages are listed there, take a look into lang-ctx.tex. > So, can we move to texnansi as the default? Context used texnansi as the default encoding in past and I would say the opposite: those who care and really need to use texnansi, probably know that better than an average user who would need ec to support his language properly, but doesn't know that. (Although I've been using "TeX" quite some time now, I never noticed the difference until two years ago when I was using some strange combinations of letters in Antykwa Torunska which has different accents on capital letters - and I started wandering why Č and Š looked so different.) The problem with euro came with the new TeXLive. But it's not ec's fault only that it doesn't work. But as others already said - uc will soon be the default anyway ... Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bold versions of fonts
Let me try again: After installing the LinLibertine and the Junicode fonts, everything works (including bolditalic) except the bold version. - System: ubuntu, minimal tex/context installation - I followed the instructions by T. Schmitz (Practex Journal 2005: Integrating TrueType Fonts into Context). I.e., using texfont. - After compiling the texfont-generated (texnansi-...-junicode.tex) file, the pdf shows all the fonts (including bold). - A testfile stalled with the error message below. After removing the lines defining the bold version (typescript-file: see attachment) everything except bold works. Testfile: \usetypescriptfile[type- junicode] \usetypescript[Junicode] \setupbodyfont[MyJunicode,12pt] \starttext etc. - Replacing the bold ttf, vf, and tfm fonts by those I found on the fiee website didn't help. I suspect that it will turn out to be an embarassing error, but I couldn't spot it. Thanks for your help, Jörg type-junicode.tex Description: Binary data Error message: ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.2.4 int: english/ english . ! Font \*MyJunicode7ptrmbfrm*:=[Junicode-Bold at 7.0pt not loadable: Metric (TF M) file not found. \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \dodosettextfamilyB ...amily \fontsize \endcsname \else \ifcsname \fontclass... \dosettextfamily ...ttextfamily \scriptscriptfont \let \fontbody \scriptface... ...y \c!tf \dosettextfamily \c!bf \dosettextfamily \c!sl \do... \synchronizetext ...athfonts \the \textstrategies \fi ... l.4 \setupbodyfont[MyJunicode,12pt] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \texteuro does not work
Hans Hagen wrote: > Thomas A. Schmitz wrote: > >> >>\startmode[hansmode] >>Ah, wait for luatex where fonts can use the afm and create encodings >>on the fly, so we don't need to worry about this anymore! >>\stopmode >> > > sure, and make virtual fonts on the fly as well -) In fact, in luatex almost all fonts will be in 'unicode' encoding, like they are in xetex already. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \texteuro does not work
Bernd Militzer wrote: > Wolfgang Schuster schrieb: > >>Hi Bernd, >> >>I tried this on my system and it work with \texteuro and \euro. Dont't >>I my sytem or contextgarden is wrong, because ConTeXt use on my machine >>the euro sign from the marvosym fonts and not from fmvr8x. Marvosym's tfm file is called fmvr8x.tfm. Or rather, it used to be called that. In the new version, it is renamed to umvs.tfm. Best, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context