[NTG-context] XeTeX and lmtypewriter10-regular
I'm running TeXLive 2008. When I compile for XeTeX (texexec --xtx) I get the following output that appears to be generating the lmtypewriter10-regular font. The bad part is that this is very slow. The part that's even worse, it does this probably 20...30...40 times? A compilation takes 145 seconds, and about 130+ seconds of time seem to be dealing with lmtypewriter10-regular. This doesn't happen on small test files, so I know I'm doing something wrong. Any ideas? Thanks, Bart kpathsea: Running mktextfm lmtypewriter10-regular mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input lmtypewriter10-regular This is METAFONT, Version 2.718281 (Web2C 7.5.7) kpathsea: Running mktexmf lmtypewriter10-regular ! I can't find file `lmtypewriter10-regular'. <*> ...; nonstopmode; input lmtypewriter10-regular Please type another input file name ! Emergency stop. <*> ...; nonstopmode; input lmtypewriter10-regular Transcript written on mfput.log. grep: lmtypewriter10-regular.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input lmtypewriter10-regular' failed to make lmtypewriter10-regular.tfm. kpathsea: Appending font creation commands to missfont.log. ___ 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] Natural tables header
Hello all: I have a 5 pages tables at 5 points with a repeating header and also some "nc=2" and "nr=2" in header. But when de table font is below 6 points there is a gap between the header and the body; and when there is some nr= in the header, the first row of the body repeats on every page. The code below shows it. Thankyou in advance for some advices. \setuppapersize[A5][A5] %% \starttext \setupcolors[state=start] This table at 5 points. Below 6 points there is a gap between the header and the body; and the first row of the body repeats in every page. \bTABLE[split=repeat]\switchtobodyfont[5pt] \bTABLEhead \bTR \bTH[nr=2] 1\eTH \bTH[nr=2] 2\eTH \bTH[nc=2] 3\eTH \eTR \bTR \bTH 3a\eTH \bTH 3b\eTH \eTR \eTABLEhead \bTABLEbody \bTR[color=red] \bTD body\eTD \bTD first\eTD \bTD row\eTD \bTD Should not repeat every page\eTD \eTR \dorecurse{55}{\bTR\bTD[nc=4]the first row is repeating on every page\eTD\eTR} \eTABLEbody \eTABLE \blank[12pt] This table at 12 points. The gap is gone but still the first row of the body repeats in every page. \bTABLE[split=repeat]\switchtobodyfont[12pt] \bTABLEhead \bTR \bTH[nr=2] 1\eTH \bTH[nr=2] 2\eTH \bTH[nc=2] 3\eTH \eTR \bTR \bTH 3a\eTH \bTH 3b\eTH \eTR \eTABLEhead \bTABLEbody \bTR[color=red] \bTD body\eTD \bTD first\eTD \bTD row\eTD \bTD Should not repeat every page\eTD \eTR \dorecurse{25}{\bTR\bTD[nc=4]the first row is repeating on every page\eTD\eTR} \eTABLEbody \eTABLE \blank[12pt] In this table at 12 points and without nr=2 in the header, the repeating header is ok, \bTABLE[split=repeat]\switchtobodyfont[12pt] \bTABLEhead \bTR \bTH 1\eTH \bTH 2\eTH \bTH 3\eTH \eTR \bTR \bTH 1a\eTH \bTH 2a\eTH \bTH 3a\eTH \eTR \eTABLEhead \bTABLEbody \bTR[color=red] \bTD body\eTD \bTD first\eTD \bTD row\eTD \eTR \dorecurse{6}{\bTR\bTD[nc=3]the first row is ok\eTD\eTR} \eTABLEbody \eTABLE \stoptext % _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx___ 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] modifying URL wrapping rules
On 11/19/2008 2:35 PM, Lars Huttar wrote: > > However, I have a few unsolved problems here. > > 1) I don't see a way, with the '\sethyphenatedurlbefore' or 'after' > mechanism, to tell it not to break a URL between two slashes, as in > "http://";. At first I thought that since our text only had a few URLs, > we'd likely never care. But ... you guessed it. One URL got broken > between the slashes: "http:/ > /www.sil.org/..." I found a way to deal with this... Based on a tip from http://xpt.sourceforge.net/techdocs/language/latex/latex03-LaTexUsage/ar01s04.html, I used {\lefthyphenmin=64 http://}\hyphenatedurl{www.sil.org/...} It seems to work in practice -- hyphenation and breaking are disabled for the "http://"; chunk. And hyphenation seems to successfully resume afterwards. This also fixes the problem of a URL breaking before the "//". The other problems are still outstanding though (wanting to break a URL after a slash, not before; and before a hyphen, not after). Thanks for any ideas... Lars ___ 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] modifying URL wrapping rules
On 11/18/2008 3:44 PM, Arthur Reutenauer wrote: >> >From what I can tell, the .tex file loads one of the other three: >> \loadmarkfile{lang-url} > > \loadmarkfile loads either lang-url.mkii or lang-url.mkiv, depending > on the ConTeXt version you're running (MkII / MkIV). In Mark IV, the > Lua code is then put in lang-url.lua, which is input by lang-url.mkiv > (you can see "\registerctxluafile{lang-url}{1.001}" near the beginning > of the latter). This architecture enables you to reuse the Lua code in > completely different environments (for example, in a pure Lua script). > >> Our project has a requirement of using Xetex, so I have to stick with >> that. Does that mean lang-url doesn't work at all? > > ConTeXt on XeTeX is considered Mark II as far as the mark business > goes (it doesn't know about Lua), so you have access to the exact same > code as with pdfTeX; in this case, lang-url.mkii will be loaded. OK, I've taken a stab at it. Here is the main code now in the modified lang-url.mkii. For brevity in this email I've just omitted the lines that I actually commented out in the file, namely characters that Chicago style does not say you can line-break URLs on. \def\sethyphenatedurlnormal#1{\expandafter\chardef\csname url @ #1\endcsname\zerocount} \def\sethyphenatedurlbefore#1{\expandafter\chardef\csname url @ #1\endcsname\plusone } \def\sethyphenatedurlafter #1{\expandafter\chardef\csname url @ #1\endcsname\plustwo } % Chicago manual of style rules: % Break URLs after: / or // (I don't know how to implement // so will be content with / for now. % To do: prevent breaking in middle of double slash //.) % Break URLs before: ~ . , - _ ? # % % Break URLs before or after: = & (I don't know how to implement 'before or after' so will % be content with breaking 'before' these characters for now). \sethyphenatedurlbefore \letterhash \sethyphenatedurlbefore \letterpercent \sethyphenatedurlbefore \letterampersand \sethyphenatedurlbefore , \sethyphenatedurlbefore - \sethyphenatedurlbefore . \sethyphenatedurlbefore = \sethyphenatedurlbefore ? \sethyphenatedurlbefore _ \sethyphenatedurlbefore \lettertilde \sethyphenatedurlafter / % was \sethyphenatedurlbefore / However, I have a few unsolved problems here. 1) I don't see a way, with the '\sethyphenatedurlbefore' or 'after' mechanism, to tell it not to break a URL between two slashes, as in "http://";. At first I thought that since our text only had a few URLs, we'd likely never care. But ... you guessed it. One URL got broken between the slashes: "http:/ /www.sil.org/..." So I tried using the base tex hyphenation mechanism to inhibit breaking there: I changed the document from \hyphenatedurl{http://www.sil.org/...} to \hyphenatedurl{\hyphenation{http://}www.sil.org/...} but that gave a stack overflow. Then I tried \hyphenation{http://}\hyphenatedurl{www.sil.org/...} but got this error: ! Not a letter. http: // \hyphenation ...malhyphenation {\the \scratchtoks }\endgroup ... Linguistics. \hyphenation {http://} \hyphenatedurl {www.sil.or... \BE #1->\startmainexdent {#1 }\stopmainexdent l.317 ...l.org/silesr/abstract.asp?ref=2007-015}.} I'm kind of shooting in the dark there, so maybe somebody who knows TeX can help me out. 2) Even though I have "\sethyphenatedurlafter /" instead of "\sethyphenatedurlbefore /", there are four cases where a URL is broken before a slash, e.g.: http://www.sil.org/.../009 /YAMBASSA.html. and no cases where a URL is broken after a slash (except when it's also before a slash -- see 1). I wonder if my modifications are actually taking effect? Do I need to compile the changes to the .mkii file or something? I tried texexec.bat --make --all, but that didn't seem to change the outcome. 3) Conversely, even though I have "\sethyphenatedurlbefore -" and not "\sethyphenatedurlafter -", there is a case where a URL is broken after a hyphen (a hyphen that was already present in the URL): http://www/Niger- Congo/... and no case where a URL is broken before a hyphen. Note that the "\sethyphenatedurlbefore -" setting is unchanged from the original lang-url.mkii, so this is not an issue of needing to recompile. Maybe the general tex hyphenation mechanism is operating here, in spite of the URL breaking settings. How do I override that (only for the URL)? 4) In one case, a URL is broken over the end of a column. That's ok, but it would be nice to be able to strongly discourage that from happening at the end of a page. I'm told that's a difficult problem to solve. It's not mandatory for us at this point but if anyone has a solution I'd like to hear about it. Thanks, Lars ___ If your question is of interest to others as well, please add an entry to the Wiki!
Re: [NTG-context] syntax highlighting problem with vim module
On Wed, 19 Nov 2008, Shiv Shankar Dayal wrote: > Hi, > > I updated context and grepped mtxrun for noquotes and the output is > same as yours. > > I have a query. Line 270 of t-vim says \runvimsyntax{#2} > Line275: \input #2-vimsyntax.tmp\relax > > where #2 is product_name-vimsyntax.tmp. > > This means that if the product name is xyz then \runvimsyntax{#2} > which is basically > a run of vim over #2 and it generates the #2-vimsyntax.tmp. Yes. The 2context.vim script generates filename.ext-vimsyntax.tmp file. I am at a loss of understanding what is happening here. Run context --verbose filename and check the output for something like MtxRun | executing: vim -u NONE -e -C -n -c "set tabstop=8" -c "syntax on" -c "s et syntax=cpp" -c "let contextstartline=1" -c "let contextstopline=0" -c "source /opt/context/tex/texmf-project/tex/context/third/vim/2context.vim" -c "wqa" "vim-test-vimsyntax.tmp" Run this line on your terminal (in a single line) and see what vim does. Aditya ___ 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] Unicode Characters
> I am trying to insert unicode charater 217D (a cross) into a line of > text. I cannot figure out how to do it, or if it can be done. You probably mean U+217D, not U+271D. This is one of the famous Zapf dingbats, available in dedicated fonts; you don't really need Unicode fonts in order to typeset it. Try the instructions by Adam Lindsay (http://web.archive.org/web/20061130021250/homepage.mac.com/atl/tex/ZapfDingbats.pdf) An alternative with Mark IV: just find a font that contains that character. You can look for it with BabelPad on Windows / UnicodeChecker on Mac OS / gucharmap on Linux. Then, just use the font with the \definefont command. Arthur ___ 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] Unicode Characters
I am trying to insert unicode charater 217D (a cross) into a line of text. I cannot figure out how to do it, or if it can be done. I use mkii but could be convinced to move to mkiv if necessary. -Erich Fickel ___ 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] New bibligraphy style
Hello, I am using the bib module and I want to redefine the display style for the references. I have therefore created a new file "bibl-ris.tex" which I have put in the same folder as bibl-apa.tex and the other existing ones. In my environment file I have \setuppublications[alternative=ris]. Unfortunately, I get the error file bibl-ris not found, unknown style ignored Where should I put my bibl-ris file, or is there something else I need to do before it can find my file? Thanks. Richard ___ 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] syntax highlighting problem with vim module
Hi, I updated context and grepped mtxrun for noquotes and the output is same as yours. I have a query. Line 270 of t-vim says \runvimsyntax{#2} Line275: \input #2-vimsyntax.tmp\relax where #2 is product_name-vimsyntax.tmp. This means that if the product name is xyz then \runvimsyntax{#2} which is basically a run of vim over #2 and it generates the #2-vimsyntax.tmp. -- Best regards, Shiv Shankar Dayal ___ 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] space between publication items in bibliography
Hi all, I'm using the bib module. How can I adjust the space between publication items? Is it just an itemization? Thankx, -- Yi ___ 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] syntax highlighting problem with vim module
On Wed, 19 Nov 2008, Shiv Shankar Dayal wrote: > Hi, > > I am running MarkIV and "luatools t-vim.tex" shows me the path of t-vim.tex. > The version does say version=2008.07.15. OK. So, t-vim is up-to-date. > I tried to execute the same command which t-vim.tex executes for vim but > it says that command line is not correct. I switched on the logging and then > I read the log and it says tabstop=8 is a new file. I doubt that something may > be wrong with the command line for vim. This means that mtxrun is old. Does mtxrun accept the noquotes option? Try mtxrun | grep noquotes Here it gives MtxRun | --script run an mtx script (--noquotes) MtxRun | --execute run a script or program (--noquotes) and this is needed for t-vim to run correctly. If you do not get any result with noquotes, you need a new mtxrun (and maybe a new luatex to use the new mtxrun). The cleanest way will be to update your entire context tree, but I do not know what is the best way to do so in TeXLive. You can try http://wiki.contextgarden.net/Running_Mark_IV#Updating_ConTeXt or do a manual update by unzipping cont-tmf.zip (from pragma) to your texmf-local, and then run luatools --generate mtxrun --selfupdate context --make and try again. Best, Aditya ___ 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] letter module: no linebreak in signature
Wolfgang Schuster wrote: > You can write the setting for the paper size in a new file with > the namer user.nls and put it somewhere in your TeX directory > where ConTeXt could find it. It's similiar to cont-usr.tex because > my module loads for every letter you write. Ah, I see. That's an interesting feature. Thanks! Michael ___ 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] syntax highlighting problem with vim module
Hi, I am running MarkIV and "luatools t-vim.tex" shows me the path of t-vim.tex. The version does say version=2008.07.15. I tried to execute the same command which t-vim.tex executes for vim but it says that command line is not correct. I switched on the logging and then I read the log and it says tabstop=8 is a new file. I doubt that something may be wrong with the command line for vim. -- Best regards, Shiv Shankar Dayal ___ 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] bold small caps with latin modern
On Wed, Nov 19, 2008 at 9:20 AM, Peter Münster wrote: > > But there seems to be no possibility to use bitmap fonts in the minimals. Almost-on-purpose decision. (You can still add some binaries to minimals yourself.) > Once, I've heard about workarounds, for example getting bold by double > printing with some displacement. Would this be possible? Not by displacement, but you can use \starteffect[outer] in both mkii and mkiv or some embolden option in XeTeX. Mojca ___ 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] how to make pagebreak for \setupstyping
Thank you. I will try it. 2008/11/18 Aditya Mahajan <[EMAIL PROTECTED]> > On Tue, 18 Nov 2008, Zhaopeng Xing wrote: > > > Hi, > > > > I am using the following setup to typeset very long codes. The problem > is, > > it can only appear on one page. Can anybody help me to split the resulted > > codes onto several pages? > > Thanks. > > Use \start-stop textbackgrounds rather than framedtexts. framedtexts > cannot split across papes. textbackgrounds are documented in the details > manaul. > > Aditya > > > \setuptyping > > > > [before={\startframedtext[width=\makeupwidth, > > > > background=screen, > > > > backgroundscreen=.96, > > > > style=\tfxx, frame=off]}, > > > > after={\stopframedtext}] > > > > \starttyping > > very long codes > > \stoptyping > > > > ___ > 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 > > ___ > -- Zhaopeng XING Tinbergen Institute ___ 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] letter module: no linebreak in signature
Am 19.11.2008 um 02:54 schrieb Michael Green: >>> \setuppapersize[letter][letter] >> >> Do you need lettersize for all your letters? >> > > Yes, I have to use US lettersize paper (8.5 inches x 11 inches) for > the physical paper on which my letters are printed. For long letters, > I use a narrower textarea, but I don't think that's what you're > asking me. You can write the setting for the paper size in a new file with the namer user.nls and put it somewhere in your TeX directory where ConTeXt could find it. It's similiar to cont-usr.tex because my module loads for every letter you write. Wolfgang ___ 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] bold small caps with latin modern
On Tue, Nov 18 2008, Wolfgang Schuster wrote: > >> On Tue, Nov 18 2008, Yue Wang wrote: >> >>> you should apply a font feature to bold font. >> > This is nonsense, the smallcaps for latin modern are > a separate font like they had been in computer modern, > trying to access them with font feature is useless. > > Besides this smallcaps are only available for the upright > and the italic style but not for the bold. What a pity... With MKII and texlive, I could do this: \definebodyfont[15pt,14pt,13pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt] [sc] [bf=cmbcsc10 sa 1, tf=cmcsc10 sa 1] \pdfpkresolution=1200 \starttext \sc Normal and \bf bold Small Caps. \stoptext But there seems to be no possibility to use bitmap fonts in the minimals. Once, I've heard about workarounds, for example getting bold by double printing with some displacement. Would this be possible? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ 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 ___