Re: [NTG-context] vertical square root upstroke (instead of having a slant)

2013-12-03 Thread Sanjoy Mahajan
a radical has a couple of increasing sizes (discrete steps, if they have a slant depends of the font designer) before it switches to an extensible that then normally has no slant Interesting. That explains the difference: The \rho made the radical big enough to switch to the extensible,

Re: [NTG-context] section numbers in margin eventually get placed too far left

2013-09-18 Thread Sanjoy Mahajan
Hans, Thanks, that fixes my and Marco's test cases. Should I wikify, or will your fix be part of an uncoming beta? Best, -Sanjoy ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] section numbers in margin eventually get placed too far left

2013-09-18 Thread Sanjoy Mahajan
Marco Patzer li...@homerow.info writes: No need to wikify. It was a bug which has already been fixed in the latest beta. Hans is too fast! Note to self: Test every bug candidate also against the latest beta. -Sanjoy

[NTG-context] section numbers in margin eventually get placed too far left

2013-09-17 Thread Sanjoy Mahajan
This test file == \setuplayout[leftmargindistance=0.125in, leftmargin=0.625in, width=4.75in, rightmargindistance=0.25in, rightmargin=0.25in] \setuphead[section][alternative=inmargin] \showframe \starttext \dorecurse{6}{\section{Blah}

Re: [NTG-context] setuplabeltext doesn't adjust the part label (with MkIV)

2013-08-31 Thread Sanjoy Mahajan
\setuphead[part][placehead=yes] Add bodypartlabel=part to the setup. Thank you -- wikified on the setuphead command-reference page. With your information, I found the relevant spot in the code, in strc-def.mkiv. The \setuphead for part doesn't include lines analogous to

[NTG-context] setuplabeltext doesn't adjust the part label (with MkIV)

2013-08-30 Thread Sanjoy Mahajan
setuplabeltext doesn't seem to adjust the part label. Here's a minimal example: \setuphead[part][placehead=yes] \setuplabeltext[part=Part~] \starttext \part{pt} This is a part. \stoptext With MkIV (e.g. on live.contextgarden.net), the part heading is just 1 pt. With MkII, it is Part 1 pt as

[NTG-context] internal mptopdf converter skips some glyphs in labels

2013-08-09 Thread Sanjoy Mahajan
The internal mptopdf converter in MkIV omit some glyphs in the labels. Here's a minimal example (test.tex): \starttext \externalfigure[testfig.1][frame=on] \blank \externalfigure[testfig-1.pdf][frame=on] \stoptext And testfig.1 is produced by testfig.mp beginfig(1) label(btex $\Omega$ etex,

Re: [NTG-context] internal mptopdf converter skips some glyphs in labels

2013-08-09 Thread Sanjoy Mahajan
Try adding prologues := 2; or prologues := 3; in your mp file. Good thought, which I tried, though neither setting resolved the problem. Any particular reason that you are compiling metapost files using mp and then including them in ConTeXt rather than directly using any one

Re: [NTG-context] internal mptopdf converter skips some glyphs in labels

2013-08-09 Thread Sanjoy Mahajan
Hans Hagen pra...@wxs.nl writes: the beta works ok .. are there any messages with respect to missing fonts or map files? I got rid of page numbering and added a few more trackers: \enabletrackers[graphics.conversion,graphics.inclusion,fonts.mapfiles,fonts.loading,fonts.missing,fonts.mapping]

Re: [NTG-context] \externalfigure doesn't find mps file in subdirectory

2013-08-06 Thread Sanjoy Mahajan
Hans, Sietse, Thank you very much: method=mps works, as does Hans's lua code. Best, -Sanjoy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] \externalfigure doesn't find mps file in subdirectory

2013-08-04 Thread Sanjoy Mahajan
\externalfigure won't find a metapost eps file in a subdirectory, if the mps has the numerical (.1) extension. Here's a minimal example (test.tex): \setupexternalfigures[directory={fig}] \starttext \externalfigure[simple.1] \stoptext where fig/simple.1 is from a simple .mp file that fills a

Re: [NTG-context] underbraces slightly too narrow (with MkIV 2013.05.28)

2013-07-12 Thread Sanjoy Mahajan
Hans Hagen pra...@wxs.nl writes: what you observe is the fact that we have a discrete number of sizes till we run out of them and go stretchable That makes sense. anyhow, i've now defined then in a different way (ok, some more trickery had to be applied as it's one of these aspects of open

[NTG-context] underbraces slightly too narrow (with MkIV 2013.05.28)

2013-07-10 Thread Sanjoy Mahajan
In certain cases, display-mathunderbraces are not quite wide enough. Here's a minimal example: === \starttext \placeformula\startformula \underbrace{15\,\tf cm}_{L} \stopformula \stoptext === Using 2013.05.28 00:36 MKIV (from vanilla TL2013), the left brace tip

Re: [NTG-context] [dev-context] palatino at 10.5pt bold not found when using project structure w/ MkIV

2013-07-08 Thread Sanjoy Mahajan
The only things which are posted on the developer list nowadays are bug reports with possible fixes or extensions to the context programing language. Thanks. I am removing dev-context from the CC. Should the \project project_file line be placed before the \startcomponent? Like this:

Re: [NTG-context] [dev-context] palatino at 10.5pt bold not found when using project structure w/ MkIV

2013-07-06 Thread Sanjoy Mahajan
Wolfgang, Thank you for all your solutions! 2. You can omit the \usetypescript line. Good to know. Does the palatino keyword in \setupbodyfont automatically do that now (in Mark IV)? Should I wikify that bit of information (as MkIV-only)? (Since I don't really understand how the fonts work,

Re: [NTG-context] stoppers in section heading without having stoppers in references?

2013-04-20 Thread Sanjoy Mahajan
Thank you, that worked perfectly -- now wikified on the References page. -Sanjoy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] stoppers in section heading without having stoppers in references?

2013-04-18 Thread Sanjoy Mahajan
In MkIV, is there a way to get a stopper (e.g. .) in the section heading, along the lines of 1. First heading but without a reference to it having the stopper? Thus, the reference should be just In Chapter 1 we learn, not In Chapter 1. we learn? I have tried many variants of the following

[NTG-context] framed float with offset

2011-01-01 Thread Sanjoy Mahajan
Is there a way to have figures placed on a slightly larger colored background and then have paragraph text flow around the enlarged area? I tried the following (using ver 2009.11.26 16:28 MKII): \setupcolors[state=start] \starttext \placefigure[right,none]{}% {\externalfigure[sample/cow.pdf]%

Re: [NTG-context] framed float with offset

2011-01-01 Thread Sanjoy Mahajan
Peter, \placefigure[right]{This is ok!}{\framed[offset=20pt, background=color, backgroundcolor=lightgray]{\externalfigure[sample/cow.pdf][scale=500]}} \input knuth Ah, I had tried almost that recipe (of wrapping the \externalfigure in a \framed) but had used backgroundoffset and

Re: [NTG-context] comparing pdfs

2009-10-25 Thread Sanjoy Mahajan
for a project. -Sanjoy #! /bin/bash # Usage: $0 file1.pdf file2.pdf # compares file1.pdf and file2.pdf by converting each page to bitmaps using # pdftoppm and then using the 'compare' ImageMagick utility # # Copyright 2007-2009 Sanjoy Mahajan. Licensed under the GNU GPL version 2 # or (at your option

[NTG-context] \pagereference changes spacing in displayed formula

2009-09-26 Thread Sanjoy Mahajan
using # ghostscript and then using the 'compare' ImageMagick utility # # Copyright 2007 Sanjoy Mahajan. Licensed under the GNU GPL version 2 # or (at your option) any later version. # # HISTORY # 2007-01-15: First version # # configure these settings to your taste viewer=xloadimage # viewer= dpi

[NTG-context] bibmod: forcing a key for alphabetical sorting

2009-09-14 Thread Sanjoy Mahajan
I'm arranging the bibliography of my math textbook alphabetial by author and it mostly works, but a couple entries are tricky. For example: @Book{Census:1992, author = {US Bureau of the Census}, title ={Statistical Abstracts of the United States: 1992}, publisher =

Re: [NTG-context] bibmod: forcing a key for alphabetical sorting

2009-09-14 Thread Sanjoy Mahajan
Aditya Mahajan adit...@umich.edu wrote: Try author={{US Bureau of the Census}} Sly. It worked perfectly. Thanks! I guess it's a generic method, not just for ConTeXt, but if someone thinks of a good spot on the wiki for it, let me know and I'll wikify. -Sanjoy `Until lions have their

[NTG-context] startregister produces strange page range (1-2-3)

2009-04-20 Thread Sanjoy Mahajan
With the following minimal file, the index entry for Knuth has the strange page range 1-2-3 rather than 1-2, 2-3. Adding \input knuth a few times in between the two start..stopregister stanzas gives a correct page range (so maybe that change hides the problem). I'm using ConTeXt 2008.10.31 (Mk

Re: [NTG-context] colored backgrounds in displayed math

2009-04-13 Thread Sanjoy Mahajan
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Hi Sanjoy, welcome back Thanks! It's absurdly enjoyable but exhausting raising a small child (22 months old)...and we have only one so I don't know how people with two or more children manage even to tie their shoes. In displayed math

[NTG-context] colored backgrounds in displayed math

2009-04-09 Thread Sanjoy Mahajan
In displayed math I was trying to highlight a piece of a formula using a gray background. After a few spacing failures with \framed, I discovered \mframed in the core-rul.tex source file. The comments there say: %D As usual, one can specify in what way the text should be %D framed. One should

Re: [NTG-context] setupdelimitedtext: linespacing in final quoted paragraph

2008-12-17 Thread Sanjoy Mahajan
Taco Hoekwater t...@elvenkind.com wrote: ...that does not remove the need to insert \par's in between paragraphs. Right, although I think that the \par, or blank line, should go after the \stopdelimitedtext in some cases. I was imagining (and using) quotations within a single larger

Re: [NTG-context] setupdelimitedtext: linespacing in final quoted paragraph

2008-12-16 Thread Sanjoy Mahajan
Thanks for the responses. I've wikified a short example, putting it at end of this page: http://wiki.contextgarden.net/Long_quotations_and_extracts Feel free to move or improve. Will LuaTeX's paragraph builder have the same restriction -- perhaps for compatability -- that linespacing be

[NTG-context] setupdelimitedtext: linespacing in final quoted paragraph

2008-12-12 Thread Sanjoy Mahajan
What's the right way to workaround the following interaction between \setupdelimitedtext and TeX's paragraph building rules? In the example below, the last paragraph from knuth.tex has the linespacing of the regular text set in 12pt, rather than the intended, narrower linespacing of 8pt text.

Re: [NTG-context] chapter-like headings with separate numbering

2008-12-06 Thread Sanjoy Mahajan
Thanks, that's a nice approach. It doesn't fully pass the duck test: The page headlines come from the chapter titles, even in the interludes. Here is an example. \startsetups[chheadline] {\ss\it Chapter \getmarking[chapternumber].\quad\getmarking[chapter]} \stopsetups

Re: [NTG-context] minimals: cannot find cmsy10.pfb

2008-12-01 Thread Sanjoy Mahajan
Taco Hoekwater [EMAIL PROTECTED] wrote: The fact that the name cmsy10.pfb is discovered means that there is a mapfile line for cmsy10 CMSY10 cmsy10.pfb in one of the map files (original-public-lm?) Right, in my message I had also suspected the same file: Among the many map files that are

Re: [NTG-context] minimals: cannot find cmsy10.pfb

2008-12-01 Thread Sanjoy Mahajan
Mojca Miklavec [EMAIL PROTECTED] wrote: I'm attaching a fixed original-public-lm.map. After testing that file, I emailed that: 1. this new .map file fixed the small test file, but 2. the larger test file did not work (couldn't find cmex10.pfb). #1 is true, but #2 was my error: I hadn't

[NTG-context] minimals: cannot find cmsy10.pfb

2008-11-30 Thread Sanjoy Mahajan
While testing Norbert's latest Debian packages, I ran across the following font problem with the recent ConTeXt minimals. The following test file: = cut here = \usetypescript[palatino][ec] \definetypeface [palatino] [mm] [math] [euler] [euler] [rscale=1.03]

Re: [NTG-context] chapter-like headings with separate numbering

2008-11-29 Thread Sanjoy Mahajan
From Wolfgang Schuster [EMAIL PROTECTED]: Use the archive my dear padawan. I did, I did! It sometimes requires a mix of luck and skill in selecting the search phrases. As when using a dictionary to check the spelling of a word -- needs enough luck and skill to be in the vicinity.

Re: [NTG-context] chapter-like headings with separate numbering

2008-11-26 Thread Sanjoy Mahajan
luigi scarso [EMAIL PROTECTED] wrote: It seem that interlude is like a section, so it's correct that at every chapter there is a reset of the alphabetical counter I meant the interludes to be long examples based upon the preceding few chapters. So I think of interludes as at the same level as

[NTG-context] chapter-like headings with separate numbering

2008-11-24 Thread Sanjoy Mahajan
I'm experimenting with making a heading that is like a chapter in format but has its own numbering (or lettering). The purpose to have an interlude, or extended example, every few chapters. The following almost-minimal example almost does so. However, the second interlude is numbered with 'A'

Re: [NTG-context] \placebookmarks: opening with only topmost levels visible

2008-07-10 Thread Sanjoy Mahajan
Wolfgang Schuster [EMAIL PROTECTED] wrote: \placebookmarks [chapter,section] [chapter] \placebookmarks [chapter,section] That's true meaning that my minimal example was too minimal! Giving no argument works here is that the default, i.e. with no second argument to

Re: [NTG-context] \placebookmarks: opening with only topmost levels visible

2008-07-10 Thread Sanjoy Mahajan
Wolfgang Schuster [EMAIL PROTECTED] wrote: \placebookmarks [chapter,section,subsection] [chapter,section] should work but it shows all three levels. What do you expect, you open the chater *and* the section branches. Thanks, now I understand what the second argument means: It's not

[NTG-context] \placebookmarks: opening with only topmost levels visible

2008-07-09 Thread Sanjoy Mahajan
From this minimal example, the resulting PDF file opens with chapter and section bookmarks. But it should open with just chapter bookmarks due to the second argument in this line: \placebookmarks [chapter,section] [chapter] The problem is mentioned on the wiki

Re: [NTG-context] defineitemgroup interferes with item reference

2008-05-03 Thread Sanjoy Mahajan
Hans Hagen [EMAIL PROTECTED] wrote: itemgroups cannot be miced Though there's no problem without those references in [brackets], so the mixing works most of the time anyway. this catches it Thanks! With two small changes, your definition makes the mixing work even when using references.

Re: [NTG-context] Referencing Itemized Items?

2008-05-03 Thread Sanjoy Mahajan
Aditya Mahajan [EMAIL PROTECTED] wrote: I usually prefer Note that \in Step[fire] is optional for experienced chefs. This way, if you enable interaction, Step 3 will become a link, rather than just 3. An example showing a third alternative. This alternative is useful if you use that

Re: [NTG-context] defineitemgroup interferes with item reference

2008-05-03 Thread Sanjoy Mahajan
Aditya Mahajan [EMAIL PROTECTED] wrote: Are you using an old version of ConTeXt? Version 2008.01.28 from Norbert's latest packages for Debian unstable. I can upgrade to 2008.04.27 by hand, but my TeX life has become so sipmle since using Norbert's packages that I may let laziness triumph.

[NTG-context] defineitemgroup interferes with item reference

2008-05-01 Thread Sanjoy Mahajan
I cannot figure out the error in the following nested itemization with a reference. Is it a bug or am I overlooking something? Here is the smallest example I could make. Strangely, if I change the startproblemlist to startitemize and stopproblemlist to stopitemize, all is well.

Re: [NTG-context] selectively turn off captions

2007-12-02 Thread Sanjoy Mahajan
I'm using the dual extension .ctx.tex as a way of telling my editor (emacs) to invoke the context mode of AUCTeX when I load a file with that extension. Auctex automatically recognizes plain tex vs latex vs context files by the first few lines in the file. The main time when that method

Re: [NTG-context] Column enumerations start at zero

2007-08-22 Thread Sanjoy Mahajan
I recently observed that column enumerations start at zero instead of at one. Has anyone else seen this? Update, this is already fixed. I'm not sure. I can reproduce the problem with this test file: \starttext \startitemize[n] \item a \stopitemize \stoptext I put it in e.tex

Re: [NTG-context] Column enumerations start at zero

2007-08-22 Thread Sanjoy Mahajan
Aditya, Thanks for the explanation. I think that the --once key does not read data from the temp files. Probably better will be something like --runs=1 (untested). Same problem when using --runs=1, but probably the reason is the same as for --once not working. -Sanjoy 'Intellectual

Re: [NTG-context] PDF Metadata / Attachments

2007-08-06 Thread Sanjoy Mahajan
producer is set by pdftex, subject isn't supported yet (feature request needed!?) It is support but called 'subtitle' in ConTeXt (which always confuses me). Try this test.tex: \setupinteraction[state=start,{subtitle={the subject}}] \starttext \input tufte \stoptext $ pdfinfo test.pdf Title:

Re: [NTG-context] placefigure

2007-07-28 Thread Sanjoy Mahajan
you can load the eps graphic in ghostview, then hit the i-key. but i agree, that this method is a pain in the ???, if you have many graphics. The following command often finds the right bounding box: gs -sDEVICE=bbox -dSAFER -dBATCH -dNOPAUSE -q file.eps -Sanjoy Creativity can be a social

Re: [NTG-context] placefigure

2007-07-28 Thread Sanjoy Mahajan
I tried your command but it doesn't work on my pc. Maybe ghostscript isn't installed? What was the exact error? On my system (i386 laptop with Ubuntu GNU/Linux): $ gs -h GPL Ghostscript 8.54 (2006-05-17) but most versions of ghostscript should work. -Sanjoy Creativity can be a social

Re: [NTG-context] placefigure

2007-07-27 Thread Sanjoy Mahajan
Here are the three most important files from yesterday's map. I looked at the .eps file in emacs, and it has junk at the beginning and the end. My system (GNU/Linux) says: $ file testPlaatje.eps testPlaatje.eps: DOS EPS Binary File Postscript starts at byte 30 length 4085 Metafile

Re: [NTG-context] Several environments in a project?

2007-07-21 Thread Sanjoy Mahajan
I had the same question and came to the following solution. The component files begin as follows: \startcomponent extreme-cases \product book \project project \startnotmode[*product] \environment env_book \stopnotmode ... Here, env_book.tex is the product-specific environment

Re: [NTG-context] texlive-context problem on Ubuntu

2007-06-10 Thread Sanjoy Mahajan
You did not install the latin modern fonts: texlive-fonts-recommended I don't think that package includes the latin modern fonts. The 'lmodern' package (which has ec-lmr10.tfm etc.) might also be needed. I'm not sure why texlive-context does not automatically depend on the proper font

[NTG-context] Ubuntu pkgs: new edgy backports

2007-06-04 Thread Sanjoy Mahajan
I just updated the Ubuntu edgy backports of the texlive packages (for i386) and have been running them on my feisty laptop for half an hour and they pass my usual 'compile textbook in ConTeXt' test. The 'context' package provides version 2007.04.17 12:51. They are recompilations of the latest

Re: [NTG-context] updated Ubuntu edgy texlive+context backports

2007-05-31 Thread Sanjoy Mahajan
Can you give the location of your key Sure, I just figured out how to do key stuff... I've submitted it to hkp://subkeys.pgp.net and it is available from there and other keyservers (search for 'sanjoy mahajan' or for the DSA id 0x3FCDAAA3). You can also get the ascii exported key here: http

[NTG-context] externalfigure not finding figures in other directories?

2007-05-30 Thread Sanjoy Mahajan
externalfigure is not finding figures in other directories, and I'm not sure if it's something I've messed up while compiling and testing new Ubuntu edgy backport packages. If I have fig.1 (a metapost eps file) in the current directory, then this test file works fine \starttext

[NTG-context] updated Ubuntu edgy texlive+context backports

2007-05-30 Thread Sanjoy Mahajan
I just updated the Ubuntu edgy backports of the texlive packages (for i386) and have been running them on my feisty laptop for half a day. The 'context' package provides version 2007.04.17 12:51. They are recompilations of the latest Ubuntu gutsy (7.10) packages, which are Norbert's latest Debian

Re: [NTG-context] externalfigure not finding figures in other directories?

2007-05-30 Thread Sanjoy Mahajan
have you tried \externalfigure[./1/fig.1] ? Good thought, although it also did not work. The behavior very strange because the subdirectory specification sort of works if the figure name is 1/fig.2 but not if it is 1/fig.1 or 1/fig.3. I say 'sort of' because it finds the figure and gets

Re: [NTG-context] Ubuntu edgy/feisty: texlive and context packages

2007-05-25 Thread Sanjoy Mahajan
Olivier TURLIER [EMAIL PROTECTED] wrote: I was a bit desperate to be able to update context via the apt mecanism, to a point that I was willing to test indesign ... That is desperation! But I agree. Installing packages straight from source, not through the package mechanism, feels like I am

[NTG-context] Ubuntu edgy/feisty: texlive and context packages

2007-05-21 Thread Sanjoy Mahajan
I made texlive and context packages for Ubuntu edgy (6.10) and feisty (7.04). They are compiled on edgy (in a clean chroot) and should work on both. I haven't tested them on an edgy system, but I use them on my feisty laptop with no problems so far. Let me know of any problems. Here are the

Re: [NTG-context] Debian repository

2007-05-17 Thread Sanjoy Mahajan
Norbert changed the locations recently. You have to use: Slight correction to the /etc/apt/sources.list lines for the tl2007 src packages (see Norbert's latest msg on dev-context). Below is what to use. I will update the wiki. deb http://people.debian.org/~preining/TeX/ tl2007/ deb-src

Re: [NTG-context] non-integer bodyfont size

2007-05-14 Thread Sanjoy Mahajan
you need to define a bodyfont environment Can I get away with the following, which just does \definebodyfont for math? It worked but maybe I'm missing a bodyfont type? Sans serif work even without adding anything else (tested by adding \ss \input tufte after \stopformula). Too much works

[NTG-context] non-integer bodyfont size

2007-05-11 Thread Sanjoy Mahajan
I'm a bit confused about font sizes. I had a bunch of missing \Delta symbols in inline math (e.g. $\Delta x$), which I tracked down to \setupbodyfont[10.5pt] The non-integral point size works for text but not for math (the \Delta turned into a backquote). How to fix that? type-siz.tex has

Re: [NTG-context] ' doesn't make a prime in math mode

2007-05-07 Thread Sanjoy Mahajan
PHP sucks :-( That is very true; it's a ghastly language. Python with mod_python work very well, if the hosting provider is willing. -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ___ If your

Re: [NTG-context] ' doesn't make a prime in math mode

2007-05-06 Thread Sanjoy Mahajan
I just tried (on Ubuntu/i386, texlive 2007 pkgs): ConTeXt ver: 2007.04.17 12:51 MKII fmt: 2007.4.28 int: english/english and your test file worked fine. What version string is output when you run it? I remember reporting this problem a while ago (0.5-1 year ago?) and it got fixed right

Re: [NTG-context] active urls in bibliographies

2007-04-25 Thread Sanjoy Mahajan
Thanks for the minimal example you sent me (offlist), which worked great. If your question is of interest to others as well, please add an entry to the Wiki! I modified it only slightly and have wikified it at http://wiki.contextgarden.net/Bibliography#Active_URLs. When the patched t-bib.tex

Re: [NTG-context] active urls in bibliographies

2007-04-24 Thread Sanjoy Mahajan
Tobias, Thanks for the patches. I put them together but didn't get a url at all in the reference. But, the patch to t-bib.tex caused 'patch' to complain: patching file t-bib.tex patch: malformed patch at line 3: --- 498,497 So I patched it by hand, and maybe the problem lies in

[NTG-context] active urls in bibliographies

2007-04-23 Thread Sanjoy Mahajan
[This must be a FAQ, and if so I'll put it on the wiki] I tried to force an active hyperlink to be part of a bibliography entry. If the bibliography style file for that entry type uses it, maybe it will work. But I wanted to put it in the 'note' field so that I could add it to most entries.

Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend

2007-04-16 Thread Sanjoy Mahajan
George N. White III [EMAIL PROTECTED] wrote: Your ConTeXt example is using the default latin modern fonts. The reason the mpost files work with plain TeX is that the cm fonts are being used by plain tex, so the fonts are already defined in the .ps file when the font commands in the figure

Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend

2007-04-16 Thread Sanjoy Mahajan
I think that was fixed long ago, but I rarely use .dvi anymore. Nor me except for arxiv.org. By the way, the next email will have directions on how to submit ConText documents to arxiv.org. -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien)

[NTG-context] arxiv.org: submitting ConText documents

2007-04-16 Thread Sanjoy Mahajan
Here is the (just tested!) procedure to submit ConTeXt documents to arxiv.org and also provide source. Suppose that document.tex is the source file, and has fig.mp as the figure file that produces fig.1, etc. 1. Generate document.ps using texexec --dvi --nobackend document.tex dvips -Ppdf

Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend

2007-04-15 Thread Sanjoy Mahajan
If you set prologues := 1 in the mp file, that should help. That still gave Courier fonts after including fig.1 in test.ps. In a new metapost (texlive2007) you can even generate an image with the font included by using prologues := 3. That worked. [I'm using MetaPost 0.993 (Web2C 7.5.6)

Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend

2007-04-15 Thread Sanjoy Mahajan
Since they are not going to process the source, how about generating a pdf and then converting the pdf into ps. That's a good idea. I'll do that or set prologues := 3 if I cannot figure out what change I need to make in the ConTeXt configuration. I'd like to figure out what's wrong with the

Re: [NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend

2007-04-15 Thread Sanjoy Mahajan
can also try to create the pd file by hand with dvips -Ppdf test, that gave a correct output on my system. Thanks, that works. I guess -Ppdf tells it to use map files that find the type1 fonts, so cmr in the metapost figures is replaced by the lmodern .pfb. Oh, that's not what happens: it

[NTG-context] texexec+mpost cmr10 vs CMR10 trouble using dvips backend

2007-04-14 Thread Sanjoy Mahajan
A font-embedding issue puzzles me. First I make a metapost figure that uses plain tex for the label, so it uses cmr10. Then I include it in a context document to get a .ps file. The problem is that the label shows up in Courier (which ghostscript uses when it cannot find the font, I think).

Re: [NTG-context] ConTeXt, XeTeX, ect was Re: OpenType in Windows

2007-04-05 Thread Sanjoy Mahajan
What does this exactly mean (from wikipedia)? XeTeX works well with both LaTeX and ConTeXt. XeTeX, PDFTeX, eTeX, and TeX (Knuth's original TeX) are conceptually at the same level. The ConTeXt documents (and kpathsea) call this level the engine. They all understand basically the same macro

Re: [NTG-context] texexec.pl vs. .rb

2007-04-05 Thread Sanjoy Mahajan
(texmfstart) texexec --pdfarrange --paper=a5a4 --print=up test.pdf The option --paper should become --papersize. The shortcutted form --paper resolves to --paperoffset nowadays. Shouldn't it be --paperformat? From the texexec manpage: --paperformat=KEY For typesetting

Re: [NTG-context] using Make for documents

2007-03-29 Thread Sanjoy Mahajan
Just some quick notes: - the 'last section' link for the impatient is not working - I missed variables (for file lists, command lines, whatever) - a link to http://www.gnu.org/software/make/manual/make.html Peter, Thanks for the suggestions. I just uploaded an updated version with those

Re: [NTG-context] Force all floats on opposite even pages

2007-03-29 Thread Sanjoy Mahajan
What I would like is that all text is put on the odd pages (n), and that all floats are put on the opposite even pages (n-1). One option is to use a big papersize, e.g. A3, equivalent to two regular pages side by side. Then put the floats in the new left margin, where the new left margin is

Re: [NTG-context] Listing of typical beginner-questions

2007-03-29 Thread Sanjoy Mahajan
Thanks to Wolfgang and Luuk for the many questions and answers. I'll accumulate such items in a file to upload from time to time to the Wiki -- with the goal of making a _ConTeXt cookbook_, subtitled _Or how do I do X in ConTeXt?_. -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien)

[NTG-context] using Make for documents

2007-03-28 Thread Sanjoy Mahajan
At the recent User Meeting, a few people were interested in how to use make to maintain complex documents. Here is version 0 of a step-by-step explanation: http://www.inference.phy.cam.ac.uk/sanjoy/teaching/tex/ Comments welcome! The URL may change. I'll eventually put it on the wiki, or

Re: [NTG-context] mplib

2007-03-19 Thread Sanjoy Mahajan
It also means that some of you will have to do some pretty hefty testing of both machineries at the end of the year since context mkiv will be used as testbed. I'll happy write lots of testing scripts. It'll be an unholy mixture of bash, make, python, scheme, and (once I learn them) lua and

Re: [NTG-context] texmfstart/pdftex parameters

2007-03-14 Thread Sanjoy Mahajan
texmfstart texexec --pass=\'-file-line-error -halt-on-error\' hello Very sly. And the short form also worked: texexec --pass=\'-file-line-error -halt-on-error\' hello -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ___ ntg-context

Re: [NTG-context] texmfstart/pdftex parameters

2007-03-10 Thread Sanjoy Mahajan
Thanks. From reading the mails I can't see a solution. Perhaps Sanjoy knows one. I don't know, unfortunately. Hans sent me a proposed fix, but it didn't work. One problem is that passing multiple options is working on Hans's setup, so the problem is elusive. I need to learn a bit of ruby.

Re: [NTG-context] \sf and bigggg fonts

2007-03-07 Thread Sanjoy Mahajan
And another question: how to make very big fonts (for example: 60pt) in text and mathematical mode? I just want to change the font temporally (and don't touch \setupbodyfont) I've been wrapping the text in \begingroup..\endgroup and changing the bodyfont inside it. For example, to make

Re: [NTG-context] \sf and bigggg fonts

2007-03-07 Thread Sanjoy Mahajan
why not \setuphead [title] [style=\ss\bfd, before={\switchtobodyfont[14.4pt]}, after={\switchtobodyfont[global]}] Because I didn't know about the global option :-) It's cleaner than my method. It's only disadvantage is that the global setting may not be the one in effect just

Re: [NTG-context] spread box contents [trying again]

2007-03-07 Thread Sanjoy Mahajan
I don't know if this method qualifies as a ConTeXt way, but it's what I would do in plain tex, and it works in ConTeXt: \starttext \line{\spaceskip0pt plus 1fil\relax hello how are you} \stoptext -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien)

Re: [NTG-context] spread box contents [trying again]

2007-03-07 Thread Sanjoy Mahajan
By the way, the \relax may not be needed. It's like garlic for vampires. It may help and I haven't learnt enough about TeX's parser to know whether I should put it in. So I was being safe and lazy. -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien)

Re: [NTG-context] I can't find the format file `cont-nl.fmt'!

2007-02-26 Thread Sanjoy Mahajan
pdfetex is obsolete, it's pdftex now (for quite some time already); i don't know where knoppix gets its tex from You could try symlinking /etc/texmf/web2c/pdfetex to pdftex or maybe the other way round. That trick worked for me when I was using pdftex 1.30. -Sanjoy `Not all those who

Re: [NTG-context] how to use \startformula inside textext(...)?

2007-02-25 Thread Sanjoy Mahajan
draw textext(\startformula \sum_{i=0}^N i^2 \stopformula); I'm always a bit scared of textext, but here's how I do what I think you are trying to do (get limits underneath) using btex..etex: label(btex $\displaystyle{\sum_{i=0}^N i^2}$ etex, origin); Hopefully the same works in textext.

Re: [NTG-context] tex live and context

2007-02-22 Thread Sanjoy Mahajan
rpmbuild --rebuild --force http://pmrb.free.fr/texlive/texlive.nosrc.rpm With a not too bad connection to the Internet and enough disk space, this works quite well (no headaches!). and maybe also with a very recent rpm. Sadly, my rpm (v4.4.1 on Ubuntu) segfaults with that command. The bug

Re: [NTG-context] e-mail - link in pdf not correct with dot in e-mail adress

2007-02-09 Thread Sanjoy Mahajan
Hmm, what is your test file? Have a look also at the longer hello-world document at the Wiki http://wiki.contextgarden.net/Hello_world. This example, extracted from there, works here (using ConTeXt version 2007.01.23): \setupinteraction[state=start] \useURL[me][mailto:[EMAIL

Re: [NTG-context] announcement: new texlive rpm

2007-02-09 Thread Sanjoy Mahajan
Peter, there is a new texlive rpm on http://pmrb.free.fr/texlive/ - easy installation: rpmbuild --rebuild --force http://pmrb.free.fr/texlive/texlive.spm Here rpm segfaults using that rebuild command (using rpm 4.4.1 on Ubuntu/i386). I tried to compile the latest version of rpm from source,

Re: [NTG-context] names as url links

2007-02-05 Thread Sanjoy Mahajan
See the Hyperlinks, buttons navigation section at http://wiki.contextgarden.net/Presentations -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Sort bibliography by authors

2007-02-04 Thread Sanjoy Mahajan
Is it possible to sort by the bibliography list by authors? The manual says that sorttype=cite|bib? No, because there is no reasonable way to do alphabetic sorting in TeX. Perhaps I will reveal my own fundamental confusion about bibtex but: What about letting bibtex (the C program) do the

[NTG-context] regression testing: tests that don't compile

2007-02-04 Thread Sanjoy Mahajan
Here are the names of the test files that didn't build with the 2007.01.23 ConTeXt: ERROR [exit code 1] tex/context/base/core-mat.tex/test-001.tex ERROR [exit code 1] tex/context/base/unic-031.tex/test-001.tex ERROR [exit code 5] metapost/context/base/mp-text.mp/test-001.tex ERROR [exit code 5]

Re: [NTG-context] problem with pdftex-1.40.1 and Gentium ligatures

2007-02-02 Thread Sanjoy Mahajan
The -recorder switch of pdftex/web2c (don't know how to use that with texexec) Like so: texexec --passon=-recorder file.tex The --passon feature had lapsed in the transition from perl to ruby texexec, but Hans and Taco fixed it in one of the recent ConTeXt releases. I now use it all the

Re: [NTG-context] Problem with overlay

2007-01-26 Thread Sanjoy Mahajan
! Arithmetic overflow. recently read \scaleboxscay In the external pdf files, is a bounding boxes present and correct (try pdfinfo -box file.pdf)? It's just my wild guess, but maybe somewhere the context code is dividing by 0 because a dimension is missing? -Sanjoy `Not all those who wander

Re: [NTG-context] Figures protruding into the margin in double-sided document

2007-01-23 Thread Sanjoy Mahajan
One type of figure is in-line with the text and protrudes into the wide margin. I use the following with a single-sided layout, for figures in the right part of the text, bleeding 0.5 inches into the margin (with no captions): \definefloat[bleedfig][figure]

Re: [NTG-context] Working with environments and projects

2007-01-17 Thread Sanjoy Mahajan
Jeff Smith [EMAIL PROTECTED] wrote: What I am doing wrong? The setup looks okay to me too. I use a similar setup with no problems. I just posted its source code http://web.mit.edu/18.098/. You might compare the product/project/env files there with what you have. But if you send me off-list a

Re: [NTG-context] multiple bibliographies

2007-01-15 Thread Sanjoy Mahajan
= % Example of per-chapter bibliographies and a per-chapter 'Further % reading' section. % % 2007-01-15: % Written by Sanjoy Mahajan [EMAIL PROTECTED] based on the % explanation by Thomas Schmitz ('multiple bibliographies', % ntg-context list, 15 Jan 2007). % % Public domain

<    1   2   3   4   5   >