Re: [NTG-context] Lucida
Am 09.11.2010 08:45, schrieb Mojca Miklavec: Just do the following: 1.) extract http://www.ctan.org/tex-archive/install/fonts/psfonts/bh/lucida.zip into /opt/context/texmf-fonts/ 2.) copy all *.pfb files into /opt/context/texmf-fonts/fonts/type1/bh/lucida 3.) run mktexlsr and mtxrun --generate thanks, I did it with a new minimal, but as I already posted: ... define fonts font with name LucidaBright is not found define fonts unknown font LucidaBright, loading aborted define fonts unable to define LucidaBright as \*lucida12ptrmtf* define fonts source file 'lbr' is not found define fonts unable to determine font format for '' define fonts source file 'lbd' is not found ... it looks for yy filenames l??, but I have only pfb files with filenames from adobe (bh) Herbert ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] problems with vertical spacing and boxes
Hi all, I need a somewhat unusual vertical setup for typesetting a play. Here is some ASCII art that may show what I want: SP XXX XX15 So: beginning of the line has a fixed space for the abbreviation of the speaker (if there is a speaker designation attached to the line). Then comes the line itself, which fills ca. 80 % amount of the linewidth and needs to be broken as a normal paragraph if it is longer than this space. At the end of the line, another fixed space with the line number, flushright; this number needs to be at the bottom of the paragraph. I have tried three different approaches, but all of them have some problem. One thing to keep in mind: there will be around 3000 such lines, so this might affect processing time. So here are the three approaches: 1. low-level, with boxes. Problem: messes up vertical spacing. (I have set the interlinespace to an absurd dimension because this shows the problem in a clearer way). I tried using \strut s at a few places, but couldn't get this to work: 2. tabulate: nice, but I can't get the number to be aligned to the bottom. Is there any parameter or trick for that? 3. baseline between columns is not aligned (maybe I'm missing the right parameter?), extra vertical space is added. Eagerly awaiting your suggestions! All best Thomas \setupbodyfont[termes,12pt] \setupinterlinespace[line=4.5ex] \startbuffer \MyLine{5}{Fa.}{This line is short.} \MyLine{10}{Me.}{This line is slightly longer, so it will be broken into two lines in the output.} \MyLine{15}{Fa.}{This line is short again.} \MyLine{20}{Me.}{Another longer line that will be broken into two lines in the output.} \MyLine{25}{Fa.}{And the last line.} \stopbuffer \starttext \def\MyLine#1#2#3% {\setbox\scratchbox\vbox{\hsize=6cm #3}\hbox{\vbox to \ht\scratchbox{\hbox to 1cm{\bf #2}\vfill}\vbox{\hsize=6cm #3\par}\vbox to \ht\scratchbox{\vfill\hbox to 1cm{\hfill #1 \getbuffer \definetabulate[ELine][|Blw(0.65cm)|p(5.8cm)|rw(0.8cm)|] \def\MyLine#1#2#3% {\startELine \NC #2 \NC #3 \NC #1 \NR \stopELine} \getbuffer \setupTABLE[column][1][width=1cm,frame=off,offset=0pt,,align={right}] \setupTABLE[column][2][width=6cm,frame=off,align={normal}] \setupTABLE[column][3][width=1cm,frame=off,align={left,low}] \def\MyLine#1#2#3% {\bTABLE \bTR\bTD \bf #2 \eTD\bTD #3 \eTD\bTD #1 \eTD \eTR \eTABLE} \getbuffer \stoptext ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problems with vertical spacing and boxes
Oh, I forgot one important detail: I have protrusion enabled, so I need protrusion for the main text (argument #2). This works with the low-level approach, but not with the other ones, I think. On Nov 9, 2010, at 10:12 AM, Thomas A. Schmitz wrote: Hi all, I need a somewhat unusual vertical setup for typesetting a play. Here is some ASCII art that may show what I want: SP XXX XX15 So: beginning of the line has a fixed space for the abbreviation of the speaker (if there is a speaker designation attached to the line). Then comes the line itself, which fills ca. 80 % amount of the linewidth and needs to be broken as a normal paragraph if it is longer than this space. At the end of the line, another fixed space with the line number, flushright; this number needs to be at the bottom of the paragraph. I have tried three different approaches, but all of them have some problem. One thing to keep in mind: there will be around 3000 such lines, so this might affect processing time. So here are the three approaches: 1. low-level, with boxes. Problem: messes up vertical spacing. (I have set the interlinespace to an absurd dimension because this shows the problem in a clearer way). I tried using \strut s at a few places, but couldn't get this to work: 2. tabulate: nice, but I can't get the number to be aligned to the bottom. Is there any parameter or trick for that? 3. baseline between columns is not aligned (maybe I'm missing the right parameter?), extra vertical space is added. Eagerly awaiting your suggestions! All best Thomas \setupbodyfont[termes,12pt] \setupinterlinespace[line=4.5ex] \startbuffer \MyLine{5}{Fa.}{This line is short.} \MyLine{10}{Me.}{This line is slightly longer, so it will be broken into two lines in the output.} \MyLine{15}{Fa.}{This line is short again.} \MyLine{20}{Me.}{Another longer line that will be broken into two lines in the output.} \MyLine{25}{Fa.}{And the last line.} \stopbuffer \starttext \def\MyLine#1#2#3% {\setbox\scratchbox\vbox{\hsize=6cm #3}\hbox{\vbox to \ht\scratchbox{\hbox to 1cm{\bf #2}\vfill}\vbox{\hsize=6cm #3\par}\vbox to \ht\scratchbox{\vfill\hbox to 1cm{\hfill #1 \getbuffer \definetabulate[ELine][|Blw(0.65cm)|p(5.8cm)|rw(0.8cm)|] \def\MyLine#1#2#3% {\startELine \NC #2 \NC #3 \NC #1 \NR \stopELine} \getbuffer \setupTABLE[column][1][width=1cm,frame=off,offset=0pt,,align={right}] \setupTABLE[column][2][width=6cm,frame=off,align={normal}] \setupTABLE[column][3][width=1cm,frame=off,align={left,low}] \def\MyLine#1#2#3% {\bTABLE \bTR\bTD \bf #2 \eTD\bTD #3 \eTD\bTD #1 \eTD \eTR \eTABLE} \getbuffer \stoptext ___ 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lucida
I read the message below and hoped my Lucida would work. On 9 nov 2010, at 08:45, Mojca Miklavec wrote: 2010/11/8 Herbert Voss wrote: Am 08.11.2010 14:42, schrieb Mojca Miklavec: 2010/11/8 Herbert Voss wrote: Has someone a working typescript file for the Lucida from TUG? Lucida should work out of the box (since beginning of 2010) if you have the files from TUG installed: % \usetypescript[lucida][ec] % for MKII \setupbodyfont[lucida] If you have any problems setting up the font, please ask. (See also the beginning of http://wiki.contextgarden.net/Lucida, ignoring the old instructions.) I have the original YY fonts of both Lucida and MathTimes, bought and paid for as it should be. My expectations were high in the light of this and previous messages about the Lucida fonts. Whowever, doing \setupbodyfont[lucida,11pt] \starttext ... \stoptext This takes, presumably an endless loop. Any ideas? Thanks in advance. Hans van der Meer The log says (abbreviated): fonts/afm/hoekwater/stmaryrd/stmary10.afm report | lua: compiling /Volumes/ALDARAN/TeX/ConTeXt/beta/tex/texmf-cache/luatex-cache/context/e6d152282a788cf572580301585138b3/fonts/enc/unicode.tma into /Volumes/ALDARAN/TeX/ConTeXt/beta/tex/texmf-cache/luatex-cache/context/e6d152282a788cf572580301585138b3/fonts/enc/unicode.tmc load afm assigning private slot U+F for unknown glyph name oblong load otf saving in cache: /Volumes/ALDARAN/TeX/ConTeXt/beta/tex/texmf/fonts/opentype/public/lm/lmmono12-regular.otf report | lua: compiling /Volumes/ALDARAN/TeX/ConTeXt/beta/tex/texmf-cache/luatex-cache/context/e6d152282a788cf572580301585138b3/fonts/otf/lmmono12-regular.tma into /Volumes/ALDARAN/TeX/ConTeXt/beta/tex/texmf-cache/luatex-cache/context/e6d152282a788cf572580301585138b3/fonts/otf/lmmono12-regular.tmc load otf preprocessing and caching took 0.041 seconds fontnames0 system files identified, 0 skipped, 0 duplicates, 0 hash entries added, runtime 0.002 seconds fontnames8 files rejected due to clashes fontnames192 double lookups in mappings fontnames4 double lookups in fallbacks report | lua: compiling /Volumes/ALDARAN/TeX/ConTeXt/beta/tex/texmf-cache/luatex-cache/context/e6d152282a788cf572580301585138b3/fonts/data/names.tma into /Volumes/ALDARAN/TeX/ConTeXt/beta/tex/texmf-cache/luatex-cache/context/e6d152282a788cf572580301585138b3/fonts/data/names.tmc Process aborted ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linebreak in part title
On Tue, 2010-11-09 at 01:20 +0100, Michael Goerz wrote: Hmm... that doesn't seem to do linebreaks. It shifts the part title a bit horizontally. It also does weird things to some my *chapter* titles (add a large space after the first word), which is configured as \setuphead[chapter][ That shows me for not testing it properly. -- Michael Murphy ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lucida
On 9-11-2010 10:10, Herbert Voss wrote: Am 09.11.2010 08:45, schrieb Mojca Miklavec: Just do the following: 1.) extract http://www.ctan.org/tex-archive/install/fonts/psfonts/bh/lucida.zip into /opt/context/texmf-fonts/ 2.) copy all *.pfb files into /opt/context/texmf-fonts/fonts/type1/bh/lucida 3.) run mktexlsr and mtxrun --generate thanks, I did it with a new minimal, but as I already posted: define fonts font with name LucidaBright is not found define fonts unknown font LucidaBright, loading aborted define fonts unable to define LucidaBright as \*lucida12ptrmtf* define fonts source file 'lbr' is not found define fonts unable to determine font format for '' define fonts source file 'lbd' is not found it looks for yy filenames l??, but I have only pfb files with filenames from adobe (bh) it probably looks for afm files as mkiv does not use tfm files are the afm files in your path? (btw, those who bought original yandy variants can get the tug variants from tug for free) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] letter module, vertical offset of reference line
On Nov 8, 2010, at 20:53 , Wolfgang Schuster wrote: Am 31.10.2010 um 11:16 schrieb Florian Wobbe: Can you make a example where this calculation goes wrong! Thanks! Of cause, a commented minimal example is attached. I have two problems and a wish: 1) The reference line and the following subject line are placed too high. I uploaded a new version where you disable the automatic placement of the reference line and the start of the letter text with \setupletterstyle[position=no] % default: position=yes [...] Great, this works perfectly - thank you! 3) It would be nice to have a bottomframe for the backaddress field that is not longer than then the text itself. \setupletterstyle [reference][frame] [width=fit] I meant the backaddress frame, though. This works analogously: \setupletterstyle [backaddress][frame] [width=fit] I have only on question left: \setupletterstyle [reference] [alternative=e, list={yourref,yourmail}, % Why is the trailing comma needed? % Without it, the reference line % vanishes completely. ] Best wishes, Florian ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linebreak in part title
On Tue, Nov 9, 2010 at 6:26 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 09.11.2010 um 00:30 schrieb Michael Goerz: I want part titles to appear on the own (empty) page, centered horizontally and vertically, and in small caps. To this end, I've set up the \part command as [...] \definefont[PartStyle][Caps sa 1] \setuphead [part] [placehead=yes, number=no, before={\startstandardmakeup[align={middle,lohi}]}, after=\stopstandardmakeup, style=PartStyle, %align=middle, %page={yes,header,footer,right}, %header=high, %footer=high, prefix=no] Works great! I ended up with \definefont[PartStyle][Caps sa 1] \definepagebreak [mychapterpagebreak] [yes,header,right] \setuphead[part] [placehead=yes, page=mychapterpagebreak, number=no, before={\startstandardmakeup[align={middle,lohi}]\switchtobodyfont[18pt]}, after=\stopstandardmakeup, style=PartStyle, align=middle, prefix=no] The only things I had to add were the mychapterpagebreak, which makes sure the (left) page before the part title is empty, and the fontsize. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problems with vertical spacing and boxes
On Nov 9, 2010, at 3:47 PM, Wolfgang Schuster wrote: You have to enable protrusion for natural tables your self with „align=hanging“. Another solution for your problem is to use descriptions: Thanks Wolfgang, I must remember align=hanging (had a similar problem with footnotes recently). Descriptions may be a way, but would it be possible to mimick my input syntax here: \MyLine{5}{Fa.}{This line is short.} and define a description that will take 5 as closesymbol and Fa. as text? Otherwise, I'd need to define a description for every speaking character. Thomas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First try with ConTeXt (Win7)
Am 2010-11-09 um 12:27 schrieb Peter Davis: I've used LaTeX for years, but I'm trying to work with ConTeXt now on a Win7 PC that has already had MikTeX 2.9 installed. I've downloaded the minimal ZIP file, unpacked it and run the first_setup.bat file. (Note, I don't have Ruby installed yet, so I can't use pdfTeX, but I assume some other build is available.) Then I opened TeXworks, created a ConTeXt typesetting option, entered a helloworld.tex program, and tried to ConTeXt it. Will you tell us anything about the settings you made in TeXworks? Did you try to run context on the command line? (GUI setup is an additional complication) This MTXrun | resolvers: skipping configuration file 'C:/Users/peterd/ AppData/Roaming/MiKTeX/2.9/web2c/texmfcnf.lua' (no file) looks like there's MiKTeX in your (TeXwork's) PATH, but not ConTeXt's binaries. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lucida
Am 09.11.2010 10:10, schrieb Herbert Voss: Am 09.11.2010 08:45, schrieb Mojca Miklavec: it looks for yy filenames l??, but I have only pfb files with filenames from adobe (bh) I renamed the files and get now: ... load afm saving: lbl in cache report | lua: compiling /opt/context/tex/texmf-cache/luatex-cache/context/2722fb5579b835691c1495c9a8e6b040/fonts/afm/lbl.tma into /opt/context/tex/texmf-cache/luatex-cache/context/2722fb5579b835691c1495c9a8e6b040/fonts/afm/lbl.tmc ! LuaTeX error ...text/tex/texmf-context/tex/context/base/math-vfu.lua:529: attempt to index local 'rotcev' (a nil value) stack traceback: ...text/tex/texmf-context/tex/context/base/math-vfu.lua:529: in function ...text/tex/texmf-context/tex/context/base/math-vfu.lua:374 (tail call): ? (tail call): ? ...text/tex/texmf-context/tex/context/base/font-def.lua:633: in function 'read' ...text/tex/texmf-context/tex/context/base/font-ctx.lua:430: in function 'stage_two' main ctx instance:1: in main chunk. Herbert ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First try with ConTeXt (Win7)
On Tue, Nov 9, 2010 at 8:30 AM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: In the last tab of settings in TeXworks you should be able to adjust paths. Simply add the path to [context root]/texmf-mswin/bin to that list and put it on top. That fixed it. Thanks! Apart from that: ConTeXt should work under MikTeX 2.9 out of the bo.x (I reported some problems to CS; I have no idea if he fixed them, but all of them were solvable even without official fix of MikTeX, but I didn't try the latest version, I only tested the beta.) I'm trying to shake out a workflow that will eventually be put on systems that don't have MikTeX pre-installed, so I'd like to keep everything dependent only on the minimal installation. Thank you. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] First try with ConTeXt (Win7)
I've used LaTeX for years, but I'm trying to work with ConTeXt now on a Win7 PC that has already had MikTeX 2.9 installed. I've downloaded the minimal ZIP file, unpacked it and run the first_setup.bat file. (Note, I don't have Ruby installed yet, so I can't use pdfTeX, but I assume some other build is available.) Then I opened TeXworks, created a ConTeXt typesetting option, entered a helloworld.tex program, and tried to ConTeXt it. However, I just get these messages: MTXrun | forcing cache reload MTXrun | resolvers: skipping configuration file 'C:/Users/peterd/AppData/Roaming/MiKTeX/2.9/web2c/texmfcnf.lua' (no file) MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-context.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Any clues available? Thanks! -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First try with ConTeXt (Win7)
On Tue, Nov 9, 2010 at 5:30 AM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Tue, Nov 9, 2010 at 12:27, Peter Davis wrote: I've used LaTeX for years, but I'm trying to work with ConTeXt now on a Win7 PC that has already had MikTeX 2.9 installed. I've downloaded the minimal ZIP file, unpacked it and run the first_setup.bat file. (Note, I don't have Ruby installed yet, so I can't use pdfTeX, but I assume some other build is available.) Then I opened TeXworks, created a ConTeXt typesetting option, entered a helloworld.tex program, and tried to ConTeXt it. However, I just get these messages: MTXrun | forcing cache reload MTXrun | resolvers: skipping configuration file 'C:/Users/peterd/AppData/Roaming/MiKTeX/2.9/web2c/texmfcnf.lua' (no file) In the last tab of settings in TeXworks you should be able to adjust paths. Simply add the path to [context root]/texmf-mswin/bin to that list and put it on top. However note that if you will want to use LaTeX again, you will have to put that path lower than MikTeX's binary path again. Apart from that: ConTeXt should work under MikTeX 2.9 out of the bo.x (I reported some problems to CS; I have no idea if he fixed them, but all of them were solvable even without official fix of MikTeX, but I didn't try the latest version, I only tested the beta.) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ You do not have to install Context minimal separately. Just run the package manager and select Context and install. Context will work without any problems. Emmanuel ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] No line break with math
Hi all, I'm pretty sure this used to work not long time ago. \starttext \showframe $a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z+a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z=$ \stoptext Is there a fix? Greeting Andreas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problems with vertical spacing and boxes
Am 09.11.2010 um 10:19 schrieb Thomas A. Schmitz: Oh, I forgot one important detail: I have protrusion enabled, so I need protrusion for the main text (argument #2). This works with the low-level approach, but not with the other ones, I think. You have to enable protrusion for natural tables your self with „align=hanging“. Another solution for your problem is to use descriptions: \definefontfeature[default][default][protrusion=quality] \setupbodyfont[termes,12pt] \setupinterlinespace[line=4.5ex] \setupalign[hanging] \starttext \definedescription [Fa] [text=Fa., width=1cm, command=\currentdescriptionlabel\gobbleoneargument, distance=0pt, title=yes, %style={\hsize10cm}, closesymbol=\rlap{\quad\currentdescriptiontitle}] \Fa{15} \input knuth\par \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lucida
Am 09.11.2010 14:08, schrieb Mojca Miklavec: I have no idea what happens if Type1 version of fonts is not the same as described in afm files, but if you don't have all the necessary Type1 files that are absolutely needed for Math, it probably won't work anyway. I don't know enough of Lucida's history to provide more insight. What pfb files exactly do you have on your system? I would try to completely remove texmf-cache and then regenerate the filename database again (mtxrun --generate). This works: \starttypescript[lucida] \definetypeface[\typescriptone][rm][serif] [lucida][default][features=default] \definetypeface[\typescriptone][ss][sans] [lucida][default][features=default] \definetypeface[\typescriptone][tt][mono] [lucida][default][features=none] \definetypeface[\typescriptone][cal][cal] [lucida][default][features=default] \definetypeface[\typescriptone][hw][handwriting][lucida][default][features=default] \definetypeface[\typescriptone][mm][math] [modern][default] \stoptypescript \setupbodyfont[lucida,11pt,rm] %\input LoadLucida \starttext foo Lucida Bright \ss Lucida Sans Serif \tt Lucida Mono \hw Handwriting \cal Calligraphic \stoptext Is it a problem with the definitions for otf in type-otf.mkiv, but using type1 instead of otf? Herbert ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lucida
2010/11/9 Herbert Voss herbert.v...@fu-berlin.de: Am 09.11.2010 08:45, schrieb Mojca Miklavec: Just do the following: 1.) extract http://www.ctan.org/tex-archive/install/fonts/psfonts/bh/lucida.zip into /opt/context/texmf-fonts/ 2.) copy all *.pfb files into /opt/context/texmf-fonts/fonts/type1/bh/lucida 3.) run mktexlsr and mtxrun --generate thanks, I did it with a new minimal, but as I already posted: ... define fonts font with name LucidaBright is not found define fonts unknown font LucidaBright, loading aborted define fonts unable to define LucidaBright as \*lucida12ptrmtf* define fonts source file 'lbr' is not found define fonts unable to determine font format for '' define fonts source file 'lbd' is not found ... it looks for yy filenames l??, but I have only pfb files with filenames from adobe (bh) Below is the list of files that ConTeXt assumes are present and which are supported by TUG's package for LaTeX (pfb files are to be bought, while afm are downloaded from CTAN). I have no idea what happens if Type1 version of fonts is not the same as described in afm files, but if you don't have all the necessary Type1 files that are absolutely needed for Math, it probably won't work anyway. I don't know enough of Lucida's history to provide more insight. What pfb files exactly do you have on your system? I would try to completely remove texmf-cache and then regenerate the filename database again (mtxrun --generate). Mojca List of font files (apart from vf, tfm, map, enc ... files): fonts/type1/bh/lucida/lbc.pfb fonts/type1/bh/lucida/lbd.pfb fonts/type1/bh/lucida/lbdi.pfb fonts/type1/bh/lucida/lbdsc.pfb fonts/type1/bh/lucida/lbh.pfb fonts/type1/bh/lucida/lbi.pfb fonts/type1/bh/lucida/lbki.pfb fonts/type1/bh/lucida/lbkr.pfb fonts/type1/bh/lucida/lbl.pfb fonts/type1/bh/lucida/lbma.pfb fonts/type1/bh/lucida/lbmad.pfb fonts/type1/bh/lucida/lbmd.pfb fonts/type1/bh/lucida/lbmdi.pfb fonts/type1/bh/lucida/lbmdo.pfb fonts/type1/bh/lucida/lbme.pfb fonts/type1/bh/lucida/lbmi.pfb fonts/type1/bh/lucida/lbmo.pfb fonts/type1/bh/lucida/lbmr.pfb fonts/type1/bh/lucida/lbms.pfb fonts/type1/bh/lucida/lbmsd.pfb fonts/type1/bh/lucida/lbr.pfb fonts/type1/bh/lucida/lbrsc.pfb fonts/type1/bh/lucida/lbsl.pfb fonts/type1/bh/lucida/lbtb.pfb fonts/type1/bh/lucida/lbtbo.pfb fonts/type1/bh/lucida/lbto.pfb fonts/type1/bh/lucida/lbtr.pfb fonts/type1/bh/lucida/lfd.pfb fonts/type1/bh/lucida/lfdi.pfb fonts/type1/bh/lucida/lfi.pfb fonts/type1/bh/lucida/lfr.pfb fonts/type1/bh/lucida/lsb.pfb fonts/type1/bh/lucida/lsbi.pfb fonts/type1/bh/lucida/lsd.pfb fonts/type1/bh/lucida/lsdi.pfb fonts/type1/bh/lucida/lsi.pfb fonts/type1/bh/lucida/lsr.pfb fonts/type1/bh/lucida/lstb.pfb fonts/type1/bh/lucida/lstbo.pfb fonts/type1/bh/lucida/lsto.pfb fonts/type1/bh/lucida/lstr.pfb fonts/afm/bh/lucida/lbc.afm fonts/afm/bh/lucida/lbd.afm fonts/afm/bh/lucida/lbdi.afm fonts/afm/bh/lucida/lbdsc.afm fonts/afm/bh/lucida/lbh.afm fonts/afm/bh/lucida/lbi.afm fonts/afm/bh/lucida/lbki.afm fonts/afm/bh/lucida/lbkr.afm fonts/afm/bh/lucida/lbl.afm fonts/afm/bh/lucida/lbma.afm fonts/afm/bh/lucida/lbmad.afm fonts/afm/bh/lucida/lbmatex.afm fonts/afm/bh/lucida/lbmd.afm fonts/afm/bh/lucida/lbmdi.afm fonts/afm/bh/lucida/lbmdo.afm fonts/afm/bh/lucida/lbme.afm fonts/afm/bh/lucida/lbmetex.afm fonts/afm/bh/lucida/lbmi.afm fonts/afm/bh/lucida/lbmitex.afm fonts/afm/bh/lucida/lbmo.afm fonts/afm/bh/lucida/lbmotex.afm fonts/afm/bh/lucida/lbmr.afm fonts/afm/bh/lucida/lbms.afm fonts/afm/bh/lucida/lbmsd.afm fonts/afm/bh/lucida/lbmstex.afm fonts/afm/bh/lucida/lbr.afm fonts/afm/bh/lucida/lbrsc.afm fonts/afm/bh/lucida/lbsl.afm fonts/afm/bh/lucida/lbtb.afm fonts/afm/bh/lucida/lbtbo.afm fonts/afm/bh/lucida/lbto.afm fonts/afm/bh/lucida/lbtr.afm fonts/afm/bh/lucida/lfd.afm fonts/afm/bh/lucida/lfdi.afm fonts/afm/bh/lucida/lfi.afm fonts/afm/bh/lucida/lfr.afm fonts/afm/bh/lucida/lsb.afm fonts/afm/bh/lucida/lsbi.afm fonts/afm/bh/lucida/lsd.afm fonts/afm/bh/lucida/lsdi.afm fonts/afm/bh/lucida/lsi.afm fonts/afm/bh/lucida/lsr.afm fonts/afm/bh/lucida/lstb.afm fonts/afm/bh/lucida/lstbo.afm fonts/afm/bh/lucida/lsto.afm fonts/afm/bh/lucida/lstr.afm ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] letter module, vertical offset of reference line
Am 09.11.2010 um 11:09 schrieb Florian Wobbe: 3) It would be nice to have a bottomframe for the backaddress field that is not longer than then the text itself. \setupletterstyle [reference][frame] [width=fit] I meant the backaddress frame, though. This works analogously: Just a typo, i wanted the backaddress too. \setupletterstyle [backaddress][frame] [width=fit] I have only on question left: \setupletterstyle [reference] [alternative=e, list={yourref,yourmail}, % Why is the trailing comma needed? % Without it, the reference line % vanishes completely. ] A side effect from context how it reads key-val-settings, the two setting \setupfoo[key=value] and \setupfoo[key=value ] are different. In the first setup the argument for the key is „value“ while in the second it is „value “ with a space at the end, because of this you need the comma after the right brace. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First try with ConTeXt (Win7)
On Tue, Nov 9, 2010 at 12:27, Peter Davis wrote: I've used LaTeX for years, but I'm trying to work with ConTeXt now on a Win7 PC that has already had MikTeX 2.9 installed. I've downloaded the minimal ZIP file, unpacked it and run the first_setup.bat file. (Note, I don't have Ruby installed yet, so I can't use pdfTeX, but I assume some other build is available.) Then I opened TeXworks, created a ConTeXt typesetting option, entered a helloworld.tex program, and tried to ConTeXt it. However, I just get these messages: MTXrun | forcing cache reload MTXrun | resolvers: skipping configuration file 'C:/Users/peterd/AppData/Roaming/MiKTeX/2.9/web2c/texmfcnf.lua' (no file) In the last tab of settings in TeXworks you should be able to adjust paths. Simply add the path to [context root]/texmf-mswin/bin to that list and put it on top. However note that if you will want to use LaTeX again, you will have to put that path lower than MikTeX's binary path again. Apart from that: ConTeXt should work under MikTeX 2.9 out of the bo.x (I reported some problems to CS; I have no idea if he fixed them, but all of them were solvable even without official fix of MikTeX, but I didn't try the latest version, I only tested the beta.) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lucida
Am 09.11.2010 14:08, schrieb Mojca Miklavec: it looks for yy filenames l??, but I have only pfb files with filenames from adobe (bh) Below is the list of files that ConTeXt assumes are present and which are supported by TUG's package for LaTeX (pfb files are to be bought, while afm are downloaded from CTAN). I have no idea what happens if Type1 version of fonts is not the same as described in afm files, but if you don't have all the necessary Type1 files that are absolutely needed for Math, it probably won't work anyway. I don't know enough of Lucida's history to provide more insight. What pfb files exactly do you have on your system? now I renamed all files to teh yy ones. I would try to completely remove texmf-cache and then regenerate the filename database again (mtxrun --generate). also done. The font files are now found, but I always get a luatex error with latest minimal ... load afm saving: lbl in cache report | lua: compiling /opt/context/tex/texmf-cache/luatex-cache/context/2722fb5579b835691c1495c9a8e6b040/fonts/afm/lbl.tma into /opt/context/tex/texmf-cache/luatex-cache/context/2722fb5579b835691c1495c9a8e6b040/fonts/afm/lbl.tmc ! LuaTeX error ...text/tex/texmf-context/tex/context/base/math-vfu.lua:529: attempt to index local 'rotcev' (a nil value) stack traceback: ...text/tex/texmf-context/tex/context/base/math-vfu.lua:529: in function ...text/tex/texmf-context/tex/context/base/math-vfu.lua:374 (tail call): ? (tail call): ? ...text/tex/texmf-context/tex/context/base/font-def.lua:633: in function 'read' ...text/tex/texmf-context/tex/context/base/font-ctx.lua:430: in function 'stage_two' main ctx instance:1: in main chunk. system error on line 1 in file .ctx: LuaTeX error ... 1 \setupbodyfont[lucida,11pt,rm] Herbert ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lucida
Ouch! Actually, Lucida worked with 2010.10.21 23:27 MKIV, but is broken in 2010.11.03 19:42 MKIV. I now see that I get the same error as you do: ! LuaTeX error ...text/tex/texmf-context/tex/context/base/math-vfu.lua:529: attempt to index local 'rotcev' (a nil value) stack traceback: ...text/tex/texmf-context/tex/context/base/math-vfu.lua:529: in function ...text/tex/texmf-context/tex/context/base/math-vfu.lua:374 (tail call): ? (tail call): ? ...text/tex/texmf-context/tex/context/base/font-def.lua:633: in function 'read' ...text/tex/texmf-context/tex/context/base/font-ctx.lua:430: in function 'stage_two' main ctx instance:1: in main chunk. system error on line 1 in file luc.tex: LuaTeX error ... Hans? 2010/11/9 Herbert Voss wrote: Am 09.11.2010 14:08, schrieb Mojca Miklavec: Is it a problem with the definitions for otf in type-otf.mkiv, but using type1 instead of otf? type-otf.mkiv is just a filename. The otf is partially there for historic reasons and doesn't imply that only OpenType fonts should be defined there, even though this is true for almost all fonts listed there. Typescripts for Lucida define the Type1 fonts. Your definition may solve the problem temporary, but most probably won't use the proper glyphs as soon as you try to compile a slightly more complex document. This needs to be fixed in ConTeXt. I'm sorry for not noticing earlier. I knew that I happily compiled a document with Lucida yesterday, but I didn't have the latest ConTeXt installed. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problems with vertical spacing and boxes
Am 09.11.2010 um 16:05 schrieb Thomas A. Schmitz: Thanks Wolfgang, I must remember align=hanging (had a similar problem with footnotes recently). Descriptions may be a way, but would it be possible to mimick my input syntax here: \MyLine{5}{Fa.}{This line is short.} and define a description that will take 5 as closesymbol and Fa. as text? Otherwise, I'd need to define a description for every speaking character. Another solution: \setupbodyfont[termes,12pt] \setupinterlinespace[line=4.5ex] \setupalign[hanging] \defineitemgroup[myline][width=1cm,symstyle=bold] \define[3]\MyLine {\startmyline\hsize=7cm \sym{#2}#3\wordright[2em]{#1}% \stopmyline} \starttext \MyLine{5}{Fa.}{This line is short.} \MyLine{12}{Ma.}{\input knuth } \MyLine{8}{Pa.}{\input ward } \stoptext When you’re going to use this for a long document i suggest an alternative method for the input: \MyLine[lines=...,speaker=...] ... \par and \startMyLine[lines=...,speaker=...] ... \stopMyLine 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problems with vertical spacing and boxes
Am 09.11.2010 um 16:05 schrieb Thomas A. Schmitz: On Nov 9, 2010, at 3:47 PM, Wolfgang Schuster wrote: You have to enable protrusion for natural tables your self with „align=hanging“. Another solution for your problem is to use descriptions: Thanks Wolfgang, I must remember align=hanging (had a similar problem with footnotes recently). Descriptions may be a way, but would it be possible to mimick my input syntax here: \MyLine{5}{Fa.}{This line is short.} and define a description that will take 5 as closesymbol and Fa. as text? Otherwise, I'd need to define a description for every speaking character. Thomas ___ 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Purpose of backend (export=yes)
On 8-11-2010 3:52, Vladimir Lomov wrote: I compiled them with context (mkIV, context minimal) and got ex{1,2,3}.export. I thought that I get not only the document content but also its logical structure (for example some markup for font switching). Bold in itself is not structure so best tag it as (e.g.) important: \setupbackend[export=yes] \definestartstop[important][style=bold] \starttext This is second example. This time we try to use font switching mechanism: This is normal, but this \important{one is bold}. Normal again. \stoptext Is it true that 'backend' only output document content not its logic strcuture? Does it work with math? The third example gives for math only not letters. Math becomes: This is inline formula math mrow mi퐸/mi mo=/mo mi푚/mi msup mi푐/mi mn2/mn /msup /mrow /math . break/ This is display formula formula formulacontent math mrow mi 퐸/mi mo=/mo mi푚/mi msup mi푐/mi mn2/mn /msup /mrow /math /formulacontent /formula I attached the resulted export files. P.S. Then I saw the announce about 'backend' 'export=yes' I thought that context would be good tool for notes. I imagine that I could wrote a text file and make from it either pdf (for printing/screening) or html (for screening) or may be convert xml (using existing tools and methods) to other formats (rtf/odt/xhtml) that would contain math, images, tables. But seems that I was wrong or this will be in future of the backend? indeed it should be possible to use context that way and afaik the export is already quite okay (you might need a recent luatex as there have been issues with attributes in math mode that were sorted out a while ago) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lucida
Hi Mojca, Ouch! Indeed. Hans? Before I do an upload, can you check the beta on the ftp server? (In the process of documenting cld etc I clean up some code so there might be typos.) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Formula not in \displaystyle
Hi again, consider the following example: \startTEXpage[offset=1ex] \startformula \lim_{n\rightarrow\infty} \stopformula \stopTEXpage The output is not in \displaystyle. Greeting Andreas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problems with vertical spacing and boxes
On Nov 9, 2010, at 4:53 PM, Wolfgang Schuster wrote: Another solution: \setupbodyfont[termes,12pt] \setupinterlinespace[line=4.5ex] \setupalign[hanging] \defineitemgroup[myline][width=1cm,symstyle=bold] \define[3]\MyLine {\startmyline\hsize=7cm \sym{#2}#3\wordright[2em]{#1}% \stopmyline} \starttext \MyLine{5}{Fa.}{This line is short.} \MyLine{12}{Ma.}{\input knuth } \MyLine{8}{Pa.}{\input ward } \stoptext When you’re going to use this for a long document i suggest an alternative method for the input: \MyLine[lines=...,speaker=...] ... \par and \startMyLine[lines=...,speaker=...] ... \stopMyLine Wolfgang Yes, this looks good! I use the macro in a slightly more complex situation, so my real syntax is \MyLine[number][yes|no][Speaker]{line content} where yes|no determines whether the number should be displayed or not and the third argument (the speaker) is optional; it it's there, it will be typeset in the space at the beginning of the line. Complex, but makes it easy to read my source... Thanks! Thomas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [OT] ConTeXt-ified LaTeX (Interfaces)
http://tug.org/svn/texlive?view=revisionrevision=20235 http://www.ctan.org/tex-archive/macros/latex/contrib/interfaces/ (I don't like the layout, but the idea is interesting.) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Formula not in \displaystyle
On Tue, 9 Nov 2010, Andreas Harder wrote: consider the following example: \startTEXpage[offset=1ex] \startformula \lim_{n\rightarrow\infty} \stopformula \stopTEXpage The output is not in \displaystyle. Works here with MkII and MkIV (on the month old 2010.10.14) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Formula not in \displaystyle
Am 09.11.2010 18:49, schrieb Aditya Mahajan: On Tue, 9 Nov 2010, Andreas Harder wrote: consider the following example: \startTEXpage[offset=1ex] \startformula \lim_{n\rightarrow\infty} \stopformula \stopTEXpage The output is not in \displaystyle. Works here with MkII and MkIV (on the month old 2010.10.14) and not with MTXrun | current version: 2010.11.03 19:42 Herbert ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \switchtobodyfont
Is this the default behaviour, that \switchtobodyfont works like a \hfill?? | page | \starttext Latin Modern \switchtobodyfont[pagella]Pagella--Palatino \stoptext | Latin ModernPag-| | ella| Latest minimal mkiv Herbert ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \switchtobodyfont
On 9-11-2010 8:49, Herbert Voss wrote: Is this the default behaviour, that \switchtobodyfont works like a \hfill?? | page | \starttext Latin Modern \switchtobodyfont[pagella]Pagella--Palatino \stoptext | Latin ModernPag-| | ella| Latest minimal mkiv in this case font definitions are loaded for the first time and as typescript (or whatever) can have spaces and newlines and since you do it in horizontal mode, you get something Latin Modern spacespacespacespacespace...spacePagella and space can stretch - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \switchtobodyfont
On 9-11-2010 8:49, Herbert Voss wrote: Is this the default behaviour, that \switchtobodyfont works like a \hfill?? | page | \starttext Latin Modern \switchtobodyfont[pagella]Pagella--Palatino \stoptext | Latin ModernPag-| | ella| Latest minimal mkiv btw, you can do: Latin Modern \switchtobodyfont[pagella]\removeunwantedspaces\space Pagella--Palatino but normally there will be a \setupbodyfont[pagella] at the top - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] No line break with math
On 9-11-2010 2:23, Andreas Harder wrote: Hi all, I'm pretty sure this used to work not long time ago. \starttext \showframe $a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z+a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z=$ \stoptext Is there a fix? i'm puzzled as the penalties and char classes are right (i have to discuss it with taco) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [OT] QTeXEngine
Apparently this software enables exporting of QTPainter classes to Tikz/Pgf http://soft.proindependent.com/qtexengine/ ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] XSL-FO to PDF?
Is there some recent information on using XML, and specifically XSL-FO, with ConTeXt? The pages on the contextgarden wiki appear to be 5 years old or more, and even the archive of this list seem pretty sparse on recent information. I'm trying to find the most direct route from XSL-FO to PS or PDF. I'll be generating hundreds or thousands of XSL-FO documents, and would like to process them. Thank you. -pd ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XSL-FO to PDF?
On Wed, Nov 10, 2010 at 12:22 AM, Peter Davis p...@pfdstudio.com wrote: Is there some recent information on using XML, and specifically XSL-FO, with ConTeXt? The pages on the contextgarden wiki appear to be 5 years old or more, and even the archive of this list seem pretty sparse on recent information. I'm trying to find the most direct route from XSL-FO to PS or PDF. I'll be generating hundreds or thousands of XSL-FO documents, and would like to process them. Thank you. batik http://xmlgraphics.apache.org/batik/ -- 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] XSL-FO to PDF?
On 10-11-2010 12:22, Peter Davis wrote: Is there some recent information on using XML, and specifically XSL-FO, with ConTeXt? The pages on the contextgarden wiki appear to be 5 years old or more, and even the archive of this list seem pretty sparse on recent information. I'm trying to find the most direct route from XSL-FO to PS or PDF. I'll be generating hundreds or thousands of XSL-FO documents, and would like to process them. there was never much interest in FO and usually such code only gets better when it's used; I have it on my todo list to rewrite the mkii specific FO processing code in mkiv as it can be done more efficient etc etc but there is not that much incentive ... in projects that I'm involved in we normally go directly from xml to pdf simply because it's faster, gives better results and takes less coding than going the fo-route; and as FO is not that much fun, I'd either need a project or see it as a challenge (btw, it's not that big a deal to rewrite the mkii code to mkiv) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Subject marking in MkIV
Hi I was trying to answer a question on tex.stackexchange (http://tex.stackexchange.com/questions/5166/) when I noticed that marking does not work the same way in MkIV as it did in MkII. Consider the following minimal example: \startsetups footer \getmarking[subject][first]\space - \getmarking[subject][last]\space - \pagenumber \stopsetups \setupfootertexts[][\setups{footer}] \starttext \subject{One} \input knuth \subject{Two} \input knuth \subject{Three}\input knuth \subject{Four} \input knuth \stoptext In MkII I get One - Three - 1 in the footer of the first page. In MkIV, the subject markings are missing. I think that the reason is that for non numbered heads, section key is not set in \definestructurehead, so no marking gets defined for them. What is the easiest way to enable subject marking in MkIV? I am using an old beta from 2010.10.14 but I do not think that anything this fundamental has changed in the last month. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___