[NTG-context] startstandardmakeup and page numbering
I use a standardmakeup to define a "part" page. However, when I do so, the page counter does not get incremented. Therefore, after every part, the page numbers are inaccurate. Is there a way to keep the page counter incrementing on a standardmakeup? Thanks, Bart ___ 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] line of text after a table
Hi all, would it be able to write a line after a table or figure (e.g.: "Data source: ...") that will be handled as a part of the float object? With many thanks for any hint, Albrecht On Sat, 22 Nov 2008, Mojca Miklavec wrote: > On Fri, Nov 21, 2008 at 11:53 PM, Hans Hagen <[EMAIL PROTECTED]> wrote: > > Mojca Miklavec wrote: > > > > > hack hack hack hack > > > > I tried solutions with special patterns sveral times but the problem is > > in mixed languages, i.e. english text mixed with url-language; there are > > some limitations (in pdftex for instance the same codes are used fo rthe > > whole par (i.e. mixed languages are possible but with the same lccodes > > etc). Also, one needs to get rid of the - > > Whooops! I didn't know about those limitations (same catcodes in > paragraph, no language mixing). It seemed like a clean solution to me, > but apparently it's not. (Sorry for the brainwash.) > > 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 > ___ > ___ 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 Fri, Nov 21, 2008 at 11:53 PM, Hans Hagen <[EMAIL PROTECTED]> wrote: > Mojca Miklavec wrote: > > > hack hack hack hack > > I tried solutions with special patterns sveral times but the problem is > in mixed languages, i.e. english text mixed with url-language; there are > some limitations (in pdftex for instance the same codes are used fo rthe > whole par (i.e. mixed languages are possible but with the same lccodes > etc). Also, one needs to get rid of the - Whooops! I didn't know about those limitations (same catcodes in paragraph, no language mixing). It seemed like a clean solution to me, but apparently it's not. (Sorry for the brainwash.) 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] modifying URL wrapping rules
Mojca Miklavec wrote: > hack hack hack hack I tried solutions with special patterns sveral times but the problem is in mixed languages, i.e. english text mixed with url-language; there are some limitations (in pdftex for instance the same codes are used fo rthe whole par (i.e. mixed languages are possible but with the same lccodes etc). Also, one needs to get rid of the - Anyhow, there is another trick, one that Aditya might love ... \bgroup \gdef\lettercolon{:} \catcode`\:=\active \catcode`\^=\active \catcode`\/=\active \catcode`\~=\active \gdef\ForMojcaWhoLikesHacks#1% {\dontleavehmode \begingroup \mathcode`\:="8000 \mathcode`\^="8000 \mathcode`\/="8000 \mathcode`\~="8000 \def:{\nobreak \hbox{\lettercolon}\allowbreak}% \def^{\allowbreak\hbox{\letterhat }\nobreak}% \def/{\nobreak \hbox{\letterslash}\allowbreak}% \def~{\allowbreak\hbox{\lettertilde}\nobreak}% \everymath\emptytoks \mathsurround\zeropoint$\tttf#1$% \endgroup} \egroup \hsize 1mm \ForMojcaWhoLikesHacks{http://www.sil.org/silesr/} - 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 - ___ 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] subsección demasiado larga
Hola a todos. Tengo un problema y no se como solucionarlo: ¿Porqué la subsección "el grado del mal.." se sale del la línea de texto e invade el margen. He intentado redefibir subsection pero no lo consigo. Adjunto entorno.tex, el archivo problema. Un saludo. Manuel Pacheco \startenvironment entorno \enableregime[utf] \mainlanguage[es] \usemodule[core-math] \usemodule[math-ext] \usemodule[tikz] \usemodule[chart] \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=biblioderecho, sort=author] \setuppublications[sorttype=bbl, alternative=ama] \setupcite[authoryears][otherstext={{\it et al.}}] \setupcite[author][left=,right=,otherstext={{\it et al.}}] \setupheadtext[en][pubs=Referencias] \setupinteraction[state=start] \definereferenceformat [eqref] [left=\normal(, right=)] %% para refenrenciar fórmulas %\placeformula[tag] \startformula % E = mc^2 %\stopformula %And then \eqref[tag].. \def\tablebrace#1#2% {$\left.\vrule width\zeropoint height#1\right\{ \text{#2}$} %\setupframed[align=middle,offset=1pt,framecorner=round] %%% \startuseMPgraphic{mpos:par:columnset} % Shift underlining down a touch \iftracepositions show_multi_pars \else draw_multi_pars \fi ; path p ; p := boundingbox currentpicture ; currentpicture := currentpicture shifted (0,-StrutDepth/3) ; setbounds currentpicture to p ; \stopuseMPgraphic \definetextbackground[Sub] [location=text,alternative=1,background=,frame=off] \definestartstop [underline] [before={\starttextbackground[Sub]}, after=\stoptextbackground] %% \def\startalign{\startformula \let\\\cr \null\vcenter\bgroup \openup\jot {\mathsurround=0pt}% \everycr={}\tabskip=4pt plus1fil% \halign to \displaywidth\bgroup \strut\hfil$\displaystyle{##}$% \tabskip=0pt &$\displaystyle{{}##}$\hfil% \tabskip=4pt plus1fil &&\hfil$\displaystyle{##}$% \tabskip=0pt &$\displaystyle{{}##}$\hfil% \tabskip=4pt plus1fil \crcr} \def\stopalign{\crcr\crcr\egroup\egroup\stopformula} \def\startgather{\startformula \let\\\cr \null\,\vcenter\bgroup \openup\jot {\mathsurround=0pt}% \ialign\bgroup \strut\hfil$\displaystyle{##}$\hfil \crcr} \def\stopgather{\crcr\crcr\egroup\egroup\,% \stopformula} \def\startsplit{% \let\\\cr \null\,\vcenter\bgroup \openup\jot {\mathsurround=0pt}% \ialign\bgroup \strut\hfil$\displaystyle{##}$% &$\displaystyle{{}##}$\hfil \crcr} \def\stopsplit{\crcr\egroup\egroup\,} \def\AC{{ \setupbodyfont[12pt]{\sl a.\sc \sl C.}\hbox{} }} \def\DC{{ \setupbodyfont[12pt]{\sl d.\sc \sl C.}\hbox{} }} \def\cº{Constitución} \def\Lat{\doLat} \def\doLat#1{{\bf {\em #1}}} \def\CE{\doCE} \def\doCE#1{ArtÃculo #1 CE} \def\CC{\doCC} \def\doCC#1{ArtÃculo #1 CC} %% % \def\Diario{\doDiario} % \def\doDiario#1#2#3#4{\blank[2*big]\bTABLE[offset=5pt,width=.22\textwidth,frame=off,align=middle,bottomframe=on,topframe=on] % \bTR\bTD[align=rigth]#1\eTD\bTD[align=rigth]#2\eTD\bTD - A -\eTD\bTD[align=left]#3\eTD\bTD[align=left]#4\eTD % \eTR % \eTABLE \blank[big] % } % \def\Mayor{\doMayor} % \def\doMayor#1#2#3#4#5#6#7#8 % {\bTABLE % \setupTABLE[row][align=left,width=.25\textwidth,frame=off] % \bTR \bTD[nx=3,bottomframe=on,align=middle]#1\eTD\eTR % \bTR \bTD[rightframe=on] % #2 \eTD\bTD % #3 \eTD\eTR % \bTR \bTD[rightframe=on] % #4 \eTD\bTD % #5 \eTD\eTR % %%%TOTALES % \bTR\bTD[rightframe=on,topframe=on] % #6\eTD\bTD[topframe=on] % #7\eTD % \bTD[topframe=on,leftframe=on,align=left]Saldo=#8 % \eTD\eTR % \eTABLE % } \setupcolors[state=start] \definecolor[headingcolor][r=0,g=0,b=0] \setupinteraction[state=start,color=blue] \def\insertdoi#1#2#3% {{\bibdoifelse{\@@[EMAIL PROTECTED] [EMAIL PROTECTED]@EA{\@@[EMAIL PROTECTED] #1\expanded{\gotoDOI{\@@[EMAIL PROTECTED] \def\insertbiburl#1#2#3% {{\bibdoifelse{\@@[EMAIL PROTECTED] [EMAIL PROTECTED]@EA{\@@[EMAIL PROTECTED] #1\expanded{\gotoURL{\@@[EMAIL PROTECTED] \setuppapersize[A4][A4] \setuplayout[topspace=0.5in, backspace=1in, header=24pt, footer=36pt, height=middle, width=middle] \setupfootnotes[bodyfont=10pt] \setupfooter[style=\it] \setupfootertexts[] \setuppagenumbering[location={footer,right}, style=bold] %definició dels tipus de lletra %\usetypescript[modern][ec] %\usetypescript[berry][ec] \usetypescript[palatino][ec] %\definetypeface[charter][rm][serif][charter][default][encoding=ec] %\definetypeface[bookman][rm][serif][bookman][default][encoding=ec] %\definetypeface[utopia][rm][serif][utopia][default][encoding=ec] \definetypeface[palatino][ppl][serif][utopia][default][encoding=ec] %\usetypescript[postscript][\defaultencoding] %\setupencoding[default=texnansi] %\setupbodyfont[po
Re: [NTG-context] modifying URL wrapping rules
On Fri, Nov 21, 2008 at 8:31 PM, Lars Huttar wrote: > On 11/21/2008 12:01 PM, Lars Huttar wrote: >> >> So as far as we know, nobody has successfully used >> \sethyphenatedurlbefore/after/etc. to tune the url-breaking mechanism. >> Has anybody else on the list done this? > > OK... I have a working workaround... close your eyes, because it's ugly. > > I just put \hbox{} around the sections that we don't want broken, and > \discretionary{}{}{} in the places we will allow a break: > > \hbox{http://}\discretionary{}{}{}\hbox{www}\discretionary{}{}{}\hbox{.sil}\discretionary{}{}{}\hbox{.org/}\discretionary{}{}{}\hbox{silesr/}... > > One of our URLs goes from 89 to 391 characters! :-p > > Maybe posting this awful kluge to the list will motivate someone who > knows TeX better to post a more elegant solution. :-) I don't know many details about TeX, but simple tests like the one below seem to work: \bgroup \catcode`\:=11 \catcode`\/=11 \catcode`\~=11 \catcode`\,=11 \catcode`\-=11 \catcode`\_=11 \catcode`\?=11 \lccode`\:=`\: \lccode`\/=`\/ \lccode`\~=`\~ \lccode`\,=`\, \lccode`\-=`\- \lccode`\_=`\_ \lccode`\?=`\? % not sure how to handle the dot, but this seems to work \catcode`\.=11 \catcode`\^=11 \lccode`\^=`\. \patterns{ 8:3 % break after : (never before) 3^8 % break before . (never after) 8/3 % break after / (never before) 3~8 % break before ~ (never after) 3,8 3-8 3_8 3?8 } \egroup And then an ugly document (after selecting the proper language): \bgroup \catcode`\:=11 \catcode`\.=11 \catcode`\/=11 \catcode`\~=11 \catcode`\,=11 \catcode`\-=11 \catcode`\_=11 \catcode`\?=11 \lccode`\:=`\: \lccode`\.=`\. \lccode`\/=`\/ \lccode`\~=`\~ \lccode`\,=`\, \lccode`\-=`\- \lccode`\_=`\_ \lccode`\?=`\? \showhyphens{http://www.sil.org/silesr/} hello \egroup This returns http://-www-.sil-.org/-silesr/ But one would need to complete the rules above (should be almost trivial), and of course one would need to write all the needed macros to use the "url language" automatically when typesetting URLs. 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] modifying URL wrapping rules
On 11/21/2008 12:01 PM, Lars Huttar wrote: > > So as far as we know, nobody has successfully used > \sethyphenatedurlbefore/after/etc. to tune the url-breaking mechanism. > Has anybody else on the list done this? > > If not, maybe the mkii implementation has never worked for that > purpose... it's possible, since urls are breaking after hyphens when > lang-url.mkii says to break before hyphens. > > If this is the case (\sethyphenatedbefore/after in mkii is broken), then > rather than awaiting a fix for the soon-obsolete mkii implementation, > maybe I can do a workaround. I need help with the tex details though, > please, as I am still very much a tex newbie... > > We are generating our tex document, so verbosity is not a problem, but > irregularity would be. > Rather than inserting \break in various places manually, which would > have to be redone often, I could automatically insert \discretionary or > \allowbreak before/after the appropriate characters in the tex document. > Would that work? > How would I suppress hyphenation at other points -- \dontleavehmode or > something like that? OK... I have a working workaround... close your eyes, because it's ugly. I just put \hbox{} around the sections that we don't want broken, and \discretionary{}{}{} in the places we will allow a break: \hbox{http://}\discretionary{}{}{}\hbox{www}\discretionary{}{}{}\hbox{.sil}\discretionary{}{}{}\hbox{.org/}\discretionary{}{}{}\hbox{silesr/}... One of our URLs goes from 89 to 391 characters! :-p Maybe posting this awful kluge to the list will motivate someone who knows TeX better to post a more elegant solution. :-) Ugly as it is, it does allow me to control exactly where I want to allow a break and where I don't. So I'll go with that for now, in order to meet our deadline. I'm sure someone could write a TeX macro to do the above algorithmically instead of brute-force specifying every possible break point explicitly. But that's what \hyphenatedurl is supposed to be, and it doesn't seem to be working for me. Regards, 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] XeTeX, Adobe Garmond & dash, quotes, etc.
On Friday 21 November 2008 11:11:39 am Wolfgang Schuster wrote: > Am 21.11.2008 um 18:25 schrieb Bart C. Wise: > > Fontforge shows no ligatures for Adobe Garamond; however, it does show > > ligatures for the Tallys fonts. So that probably explains why there > > are no > > ligatures. > > > > However, the font has a lot of kerning pairs, but I don't seem to be > > able turn > > those on/off with the \definefontfeature directive as I could do in > > the Tallys > > font. > > > > And back to the original problem, en dash, em dash, quotes that work > > in other > > fonts don't work here. I can use \emdash, \endash, \quotesingle, > > etc., but > > this creates more work when you get text from an author and is more > > prone to > > error. > > > > So is this a font problem? Or is this something I'm doing wrong > > (and what)? > > Give us more information, what format does your Garamond > font has (type1, truetype or opentype). Have you tried > to load the font without ConTeXts interface: > > \font\garamond="AGaramond-Regular:mapping=tex-text" > > \garamond fi ffi -- --- ``text'' fl > > \bye > > > Can you try to test your typescript with MkIV if this > makes a difference and finally, what is the output from > "mtxrun --script fonts --list AGaramond* --info". > > Wolfgang > The above code works, the -- and --- get translated to endash and emdash, the quotes look great. Still no ligatures, but it doesn't seem that the font has any. I have no MkIV setup, and I'm in the middle of a project, so now is not a good time to switch. Is there a convenient way to try on TeXLive2008 without changing my current setup? If so, I'll give it a whirl. $ mtxrun --script fonts --list AGaramond* --info MtxRun | error unable to identify cnf file MtxRun | error unable to identify cnf file MtxRun | no cnf files found (TEXMFCNF may not be set/known) MtxRun | unknown script: fonts Something wrong with my TeXLive2008 installation? Bart ___ 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] XeTeX, Adobe Garmond & dash, quotes, etc.
Am 21.11.2008 um 18:25 schrieb Bart C. Wise: > Fontforge shows no ligatures for Adobe Garamond; however, it does show > ligatures for the Tallys fonts. So that probably explains why there > are no > ligatures. > > However, the font has a lot of kerning pairs, but I don't seem to be > able turn > those on/off with the \definefontfeature directive as I could do in > the Tallys > font. > > And back to the original problem, en dash, em dash, quotes that work > in other > fonts don't work here. I can use \emdash, \endash, \quotesingle, > etc., but > this creates more work when you get text from an author and is more > prone to > error. > > So is this a font problem? Or is this something I'm doing wrong > (and what)? Give us more information, what format does your Garamond font has (type1, truetype or opentype). Have you tried to load the font without ConTeXts interface: \font\garamond="AGaramond-Regular:mapping=tex-text" \garamond fi ffi -- --- ``text'' fl \bye Can you try to test your typescript with MkIV if this makes a difference and finally, what is the output from "mtxrun --script fonts --list AGaramond* --info". 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] modifying URL wrapping rules
On 11/21/2008 2:22 AM, Hans Hagen wrote: > i leave it to others to react on the rest of your mail (some users have > been tuning the mechanism too) > > Hans On 11/21/2008 9:45 AM, Steffen Wolfrum wrote: > > Am 21.11.2008 um 16:35 schrieb Lars Huttar: > >> >> Hello, >> >> Did either of you, Aditya or Steffen, have success modifying how URLs >> are wrapped? Did you do it by using \sethyphenatedurlbefore/etc.? >> >> I'm trying to finish a production project and am stuck on this problem. >> >> Thanks, >> Lars > > > Hi Lars, > > ... no, I am still hoping for a fix for that. > > As far as I have seen also Mojca asked for "How to influence hyphenation > points in URLs?" > And even her got no answer! That's a bad sign ;o) > > Steffen On 11/21/2008 9:52 AM, Aditya Mahajan wrote: > No, I had a deadline and in the end, I did URL breaking by hand, using > \break at appropriate places. But it was a short article (4/5 pages). > > Aditya So as far as we know, nobody has successfully used \sethyphenatedurlbefore/after/etc. to tune the url-breaking mechanism. Has anybody else on the list done this? If not, maybe the mkii implementation has never worked for that purpose... it's possible, since urls are breaking after hyphens when lang-url.mkii says to break before hyphens. If this is the case (\sethyphenatedbefore/after in mkii is broken), then rather than awaiting a fix for the soon-obsolete mkii implementation, maybe I can do a workaround. I need help with the tex details though, please, as I am still very much a tex newbie... We are generating our tex document, so verbosity is not a problem, but irregularity would be. Rather than inserting \break in various places manually, which would have to be redone often, I could automatically insert \discretionary or \allowbreak before/after the appropriate characters in the tex document. Would that work? How would I suppress hyphenation at other points -- \dontleavehmode or something like that? Thanks again, 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] XeTeX, Adobe Garmond & dash, quotes, etc.
Fontforge shows no ligatures for Adobe Garamond; however, it does show ligatures for the Tallys fonts. So that probably explains why there are no ligatures. However, the font has a lot of kerning pairs, but I don't seem to be able turn those on/off with the \definefontfeature directive as I could do in the Tallys font. And back to the original problem, en dash, em dash, quotes that work in other fonts don't work here. I can use \emdash, \endash, \quotesingle, etc., but this creates more work when you get text from an author and is more prone to error. So is this a font problem? Or is this something I'm doing wrong (and what)? Thanks once again, Bart On Friday 21 November 2008 10:00:14 am Mojca Miklavec wrote: > On Fri, Nov 21, 2008 at 5:47 PM, Bart C. Wise wrote: > > I think the error I got was not having enough sleep :-) because I worked > > on it this morning and it's working. I'll tack on my current file below. > > The font features does not seem to make any difference. However, I took > > the same typescript and modified it for the Tallys font and I can turn > > ligatures on/off, kerning on/off, etc. But the same typescript for the > > Adobe Garamond does not work, I'm perplexed and a bit frustrated. > > I'm not sure if we're talking about the same problem, but I remember > that I had to try *all* different variants of Garamond when I needed > fi ligature and only a single font had the proper weight and that > ligature (I ended up using ITCGaramondStd-Lt and ITCGaramondStd-LtIta > after wasting way too much time trying to figure out what was wrong). > > Did you check if the desired ligatures are available at all in the > font you are using? > > 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 > ___ > ___ 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] XeTeX, Adobe Garmond & dash, quotes, etc.
On Fri, Nov 21, 2008 at 5:47 PM, Bart C. Wise wrote: > I think the error I got was not having enough sleep :-) because I worked on it > this morning and it's working. I'll tack on my current file below. The font > features does not seem to make any difference. However, I took the same > typescript and modified it for the Tallys font and I can turn ligatures > on/off, > kerning on/off, etc. But the same typescript for the Adobe Garamond does not > work, I'm perplexed and a bit frustrated. I'm not sure if we're talking about the same problem, but I remember that I had to try *all* different variants of Garamond when I needed fi ligature and only a single font had the proper weight and that ligature (I ended up using ITCGaramondStd-Lt and ITCGaramondStd-LtIta after wasting way too much time trying to figure out what was wrong). Did you check if the desired ligatures are available at all in the font you are using? 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 ___
[NTG-context] writing additional compilation info to the log (or other) file
Hi, How do you write the TeXExec | processing document ... TeXExec | loading ctx file ... TeXExec | using flags texengine=... interface=... result=... TeXExec | using modes ... TeXExec | outputfile ... TeXExec | tex processing method: ... TeXExec | TeX run ... TeXExec | writing option file ... TeXExec | using randomseed ... TeXExec | tex engine: ... TeXExec | tex format: ... part (or some of them, for ex. modes) of the console window compilation output to the log (or other) file ? -- Best, Alan * TeX engine = LuaTeX *ConTeXt minimals ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english * Ubuntu 8.04 Hardy Heron ___ 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] XeTeX, Adobe Garmond & dash, quotes, etc.
I think the error I got was not having enough sleep :-) because I worked on it this morning and it's working. I'll tack on my current file below. The font features does not seem to make any difference. However, I took the same typescript and modified it for the Tallys font and I can turn ligatures on/off, kerning on/off, etc. But the same typescript for the Adobe Garamond does not work, I'm perplexed and a bit frustrated. I greatly appreciate your help thus far. Bar \definefontfeature[default] [liga=yes, kern=yes, tlig=yes, script=latn, mapping=tex-text] \starttypescript[serif][agaramond] \definefontsynonym[AGaramondRegular] [name:AGaramond-Regular] [features=default] \stoptypescript \starttypescript[serif][agaramond][name] \definefontsynonym [Serif] [AGaramondRegular] [features=default] \stoptypescript \starttypescript[AGaramond] \definetypeface[MyGaramond][rm][serif][agaramond][default][features=default] \stoptypescript \usetypescript[AGaramond]%[ec] \setupbodyfont[MyGaramond, 12pt] \starttext Ydes, Yffignac and Ygrande fi ff ffi Two of [of] (of) \quote{of} \quotation{of} of? of! of*. \quote{Ask Jeff} \quotation{Ask Jeff} \stoptext On Friday 21 November 2008 09:01:13 am Mojca Miklavec wrote: > On Fri, Nov 21, 2008 at 6:40 AM, Bart C. Wise wrote: > > Mojca, > > > > Thanks for all you time in helping out. I'm still having problems. The > > \quote and \quotation work. However, as you pointed out, the en, em and > > apostrophe do not work. > > > > In addition, [features=default] did not compile, but [feature=default] > > did. > > What error did you get? > In that case feature=default has been ignored (unknown parameters get > ignored in ConTeXt), that's why it didn't complain, but it didn't work > either. > > > Here's what I'm working with: > > > > \starttypescript[serif][agaramond] > > \definefontsynonym[AGaramondRegular][name:AGaramond-Regular] > > [feature=default] > > \definefontsynonym[AGaramondItalic] > > [name:AGaramond-Italic][feature=default] > > \definefontsynonym[AGaramondBold] [name:AGaramond-Bold] > > [feature=default] \definefontsynonym[AGaramondBoldIt] > > [name:AGaramond-BoldItalic] [feature=default] > > \stoptypescript > > > > \starttypescript[serif][agaramond][name] > > \definefontsynonym [Serif] [AGaramondRegular] > > \definefontsynonym [SerifItalic] [AGaramondItalic] > > \definefontsynonym [SerifBold] [AGaramondBold] > > \definefontsynonym [SerifBoldItalic] [AGaramondBoldIt] > > \stoptypescript > > > > \starttypescript[agaramond] > > > > \definetypeface[agaramond][rm][serif][agaramond][default][feature=default > >] \stoptypescript > > > > \usetypescript[agaramond] > > \setupbodyfont[agaramond, 12pt] > > \definefontfeature[default] > >[liga=yes, kern=yes, tlig=yes, script=latn, mapping=tex-text] > > > > Any more hints? > > I don't see anything else being fundamentally wrong (you don't need > both mapping=tex-text and tlig=yes though, but that should not break > compilation). May I ask for the logs? > > 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 > ___ > ___ 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 Fri, 21 Nov 2008, Shiv Shankar Dayal wrote: >>> Finally some success. I get product-name-vimsyntax.tmp when I run context. >>> It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp. >>> >>> I kill the compilation and run the command for vim manually which generates >>> product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I >>> get pretty printing. I am somewhat happy but I do not know why this is >>> happening. > >> Do you have write18 enabled? see http://wiki.contextgarden.net/write18 > >> Aditya > > Yes. write18 is enabled. I am really confused why it is not working for you. Can you create a minimal example, run "context --verbose filename" and send me (offlist) the console output (not the log file, the console output has some extra info from mtxrun). Also can you check what happens when you run (in a single line) mtxrun --verbose --noquote bin:vim "-u NONE -e -C -n -V10log -c \"syntax on\" -c \"source kpse:2context.vim\" -c \"wqa\" vim-test.tex " Replace vim-test.tex by any file that exists on your system. Send me the console output and the log file created by vim. 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 ___
[NTG-context] font style, font case question
Hi, Re: http://wiki.contextgarden.net/Basic_Text_Formatting Although font style and font cases are mentioned separately in the table, from the few test I've done it doesn't seem font styles and font cases can be combined, for ex.: \bf \sc sometext. Is that so for all of them ? If not, is there a normal font case, aka \tf for the font style/size ? -- Best, Alan * TeX engine = LuaTeX *ConTeXt minimals ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english * Ubuntu 8.04 Hardy Heron ___ 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] XeTeX, Adobe Garmond & dash, quotes, etc.
On Fri, Nov 21, 2008 at 6:40 AM, Bart C. Wise wrote: > Mojca, > > Thanks for all you time in helping out. I'm still having problems. The > \quote and \quotation work. However, as you pointed out, the en, em and > apostrophe do not work. > > In addition, [features=default] did not compile, but [feature=default] did. What error did you get? In that case feature=default has been ignored (unknown parameters get ignored in ConTeXt), that's why it didn't complain, but it didn't work either. > Here's what I'm working with: > > \starttypescript[serif][agaramond] > \definefontsynonym[AGaramondRegular][name:AGaramond-Regular] > [feature=default] > \definefontsynonym[AGaramondItalic] [name:AGaramond-Italic][feature=default] > \definefontsynonym[AGaramondBold] [name:AGaramond-Bold] [feature=default] > \definefontsynonym[AGaramondBoldIt] [name:AGaramond-BoldItalic] > [feature=default] > \stoptypescript > > \starttypescript[serif][agaramond][name] > \definefontsynonym [Serif] [AGaramondRegular] > \definefontsynonym [SerifItalic] [AGaramondItalic] > \definefontsynonym [SerifBold] [AGaramondBold] > \definefontsynonym [SerifBoldItalic] [AGaramondBoldIt] > \stoptypescript > > \starttypescript[agaramond] > \definetypeface[agaramond][rm][serif][agaramond][default][feature=default] > \stoptypescript > > \usetypescript[agaramond] > \setupbodyfont[agaramond, 12pt] > \definefontfeature[default] >[liga=yes, kern=yes, tlig=yes, script=latn, mapping=tex-text] > > Any more hints? I don't see anything else being fundamentally wrong (you don't need both mapping=tex-text and tlig=yes though, but that should not break compilation). May I ask for the logs? 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] modifying URL wrapping rules
On 11/21/2008 2:22 AM, Hans Hagen wrote: > Lars Huttar wrote: >> On 11/19/2008 2:35 PM, Lars Huttar wrote: >>> 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. >> Can someone tell me if there's a compile command necessary for mkii? > > texexec --make > Thanks for your reply... OK, I did that. Behavior with respect to the two outstanding problems (breaking after hyphen and before slash) has not changed. But it's good to know that it's not due to some dependencies not being updated. > however, i strongly advise you to put such patches or tuning in your > document style because otherwise you loose them when you update Understood. A colleague tells me that if I put the \sethyphenatedurlbefore/after settings in the .tex document they will override the settings in lang-url.mkii, which is very good news. So if lang-url.mkii says \sethyphenatedurlbefore \letterbar I can comment that line out in lang-url.mkii; but if I don't want to modify lang-url.mkii, can I accomplish the same thing by putting \sethyphenatedurlnormal \letterbar in my .tex file? >> \ifx\normalquitvmode\undefined \else \let\dontleavehmode\normalquitvmode \fi >> >> I am running Xetex, FWIW. >> "This is XeTeX, Version 3.1415926-2.2-0.999.6 (Web2C 7.5.7)" >> >> The above makes me think that "dontleavehmode" should prevent any >> 'hyphenation' except for the types explicitly allowed in lang-url.mkii >> via \sethyphenatedurlafter/before/normal. > > just leave dontleavehmode untouched; it's definition adapts itself to > the engine > > i leave it to others to react on the rest of your mail (some users have > been tuning the mechanism too) I would be very glad to hear from said users who have had any success. I'm emailing Steffen and Aditya now. Actually, just now looking at lang-url.tex I see the comments %D For those who want to put full \URL's in a text, we offer %D %D \startbuffer %D \hyphenatedurl{http://optimist.optimist/optimist/optimist.optimist#optimist} %D \stopbuffer %D %D \typebuffer which makes me wonder if I need to put the \startbuffer,\stopbuffer,\typebuffer commands in my tex code. But I think maybe it's markup for generating documentation. If so, I wonder why I can't find such generated documentation on \hyphenatedurl. 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] syntax highlighting problem with vim module
>> Finally some success. I get product-name-vimsyntax.tmp when I run context. >> It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp. >> >> I kill the compilation and run the command for vim manually which generates >> product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I >> get pretty printing. I am somewhat happy but I do not know why this is >> happening. >Do you have write18 enabled? see http://wiki.contextgarden.net/write18 >Aditya Yes. write18 is enabled. -- 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] color test not working
Hi: Ummm... Same here with LuaTeX (It is ok here two or three days ago). MKII works fine. So I always keep a production release (ver 2005.01.31 with pdfeTeX 3.141592-1.21a-2.2) to process our journal and use the cutting edge for fun :-) Yue On Fri, Nov 21, 2008 at 12:02 PM, Alan STONE <[EMAIL PROTECTED]> wrote: > On Sat, Sep 13, 2008 at 10:04 PM, Alan Stone <[EMAIL PROTECTED]> > wrote: >> >> Hi, >> >> \setupcolors[state=start] >> >> \setupcolor[rgb] >> \setupcolor[xwi] >> \setupcolor[ema] >> >> \starttext >> >> \midaligned{\tfb \bf RGB colors} >> \blank[3*big] >> \showcolor[rgb] >> \page >> >> \midaligned{\tfb \bf XWI colors} >> \blank[3*big] >> \showcolor[xwi] >> \page >> >> \midaligned{\tfb \bf EMA colors} >> \blank[3*big] >> \showcolor[ema] >> >> \stoptext > > > > FYI, this currently doesn't work under Windows XP with > ConTeXt ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english > Output in attachement. > > By the way, I installed the latest > context-setup-mswin.zip18-Nov-2008 18:06 3.1M and (see above) it says > 2008.11.10 > > -- > Best, > Alan > ___ > 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 > ___ > > ___ 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] color test not working
On Fri, Nov 21, 2008 at 1:02 PM, Alan STONE <[EMAIL PROTECTED]>wrote: > FYI, this currently doesn't work under Windows XP with > ConTeXt ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english > Output in attachement. > > By the way, I installed the latest > context-setup-mswin.zip18-Nov-2008 18:06 3.1M and (see above) it says > 2008.11.10 > Same under Linux. -- Best, Alan * TeX engine = LuaTeX *ConTeXt minimals ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english * Ubuntu 8.04 Hardy Heron ___ 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] color test not working
On Sat, Sep 13, 2008 at 10:04 PM, Alan Stone <[EMAIL PROTECTED]>wrote: > Hi, > > \setupcolors[state=start] > > \setupcolor[rgb] > \setupcolor[xwi] > \setupcolor[ema] > > \starttext > > \midaligned{\tfb \bf RGB colors} > \blank[3*big] > \showcolor[rgb] > \page > > \midaligned{\tfb \bf XWI colors} > \blank[3*big] > \showcolor[xwi] > \page > > \midaligned{\tfb \bf EMA colors} > \blank[3*big] > \showcolor[ema] > > \stoptext > FYI, this currently doesn't work under Windows XP with ConTeXt ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english Output in attachement. By the way, I installed the latest context-setup-mswin.zip18-Nov-2008 18:06 3.1M and (see above) it says 2008.11.10 -- Best, Alan colortest.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] New bibligraphy style
> > 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? > > You need to execute "mktexlsr" (mkii) or "luatools --generate" (mkiv). > The file is in the right place, but the system cannot find it because > the file search database is not updated yet. > > > Best wishes, > Taco That's great! 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] modifying URL wrapping rules
Lars Huttar wrote: > On 11/19/2008 2:35 PM, Lars Huttar wrote: >> 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. > > Can someone tell me if there's a compile command necessary for mkii? texexec --make however, i strongly advise you to put such patches or tuning in your document style because otherwise you loose them when you update > \ifx\normalquitvmode\undefined \else \let\dontleavehmode\normalquitvmode \fi > > I am running Xetex, FWIW. > "This is XeTeX, Version 3.1415926-2.2-0.999.6 (Web2C 7.5.7)" > > The above makes me think that "dontleavehmode" should prevent any > 'hyphenation' except for the types explicitly allowed in lang-url.mkii > via \sethyphenatedurlafter/before/normal. just leave dontleavehmode untouched; it's definition adapts itself to the engine i leave it to others to react on the rest of your mail (some users have been tuning the mechanism too) 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 - ___ 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] [OT] ubuntume
Ubuntu Muslim Edition 8.10 released http://ubuntume.com/beta/ Maybe can be useful to test context -- luigi ___ 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 ___