[NTG-context] Paragraph itemizes
Hello, How do you setup your itemize environment to get a formatting in paragraph fashion, that is to say without margins at the second, third, etc. lines of each item, like this: 1. one one one one one one one one one one one one one one one one one one one one 2. two two two two two two two two two two two two two two two two two two two two 3. three three three three three three three three three three three three three three three three three three three three I get this instead (notice the margins represented with underscores): 1. one one one one one one one one one one __one one one one one one one one one one 2. two two two two two two two two two two __two two two two two two two two two two 3. three three three three three three three three three three __three three three three three three three three three three with: \setupitemgroup[itemize][each][packed] \startitemize[n] \item \dorecurse{20}{one} \item \dorecurse{20}{two} \item \dorecurse{20}{three} \stopitemize Best regards. ___ 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] Paragraph itemizes
Le 29/04/2014, Maggyero a écrit How do you setup your itemize environment to get a formatting in paragraph fashion, that is to say without margins at the second, third, etc. lines of each item, like this: 1. one one one one one one one one one one one one one one one one one one one one I get this instead (notice the margins represented with underscores): 1. one one one one one one one one one one __one one one one one one one one one one with: \setupitemgroup[itemize][each][packed] \startitemize[n] \item \dorecurse{20}{one} \item \dorecurse{20}{two} \item \dorecurse{20}{three} Not tested but I think \setupitemgroup[itemize][each][distance=0em] should do the trick. One can also change the margins (see http://http://wiki.contextgarden.net/Command/setupitemgroup). All the best. -- Romain Diss ___ 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] Can I do my next book in ConTeXt?
On Apr 28, 2014, at 4:03 PM, Gerben Wierda wrote: Have work flows been devised to combine PDF production for print and EPUB from a ConTeXt-based source? Well, there's pandoc: http://johnmacfarlane.net/pandoc/ I've been taking something of a break from (La)TeX and have been working on the documentation for an open source hobbyist CNC milling/routing machine, the Shapeoko: http://www.shapeoko.com/ (currently working on converting an SO2 into a 3D printer), so have been using markdown and mediawiki a lot --- there's a lot to be said for just writing and assigning gross markup w/o consideration for final appearance, only doing that at the end. William -- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow. ___ 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] Paragraph itemizes
Am 29.04.2014 um 11:20 schrieb Maggyero maggy...@gmail.com: Hello, How do you setup your itemize environment to get a formatting in paragraph fashion, that is to say without margins at the second, third, etc. lines of each item, like this: 1. one one one one one one one one one one one one one one one one one one one one 2. two two two two two two two two two two two two two two two two two two two two 3. three three three three three three three three three three three three three three three three three three three three I get this instead (notice the margins represented with underscores): 1. one one one one one one one one one one __one one one one one one one one one one 2. two two two two two two two two two two __two two two two two two two two two two 3. three three three three three three three three three three __three three three three three three three three three three with: \setupitemgroup[itemize][each][packed] \startitemize[n] \item \dorecurse{20}{one} \item \dorecurse{20}{two} \item \dorecurse{20}{three} \stopitemize Use the “intext” keyword. \usemodule[visual] \starttext \startitemize[n,intext,packed] \item \fakewords{10}{20} \item \fakewords{10}{20} \item \fakewords{10}{20} \stopitemize \stoptext BTW: When you make a minimal example it should also be working, i.e. on your case you should also add \starttext and \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 ___
[NTG-context] Advanced ligatures
Dear All, is there any way to switch the hlig or dlig features on? The corresponding glyphs are present in the font, but somehow ignored... \definefontfamily[palation][rm][Palatino Linotype] \definefontfeature[f:historical_ligatures][hlig=yes] \definefontfeature[f:discretionary_ligatures][dlig=yes] % custom shortcuts \define[1]\hlig{\feature[+][f:historical_ligatures]#1} \define[1]\dlig{\feature[+][f:discretionary_ligatures]#1} \starttext \setupbodyfont[palatino] ff fi fl\par {\hlig {ct sp st}}\par {\dlig {Qu}}\par \stoptext Thanks, Jan Context 2014.04.17. LuaTeX 0.79.1 ___ 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] Advanced ligatures
Am 29.04.2014 um 16:21 schrieb Jan Tosovsky j.tosov...@email.cz: Dear All, is there any way to switch the hlig or dlig features on? The corresponding glyphs are present in the font, but somehow ignored… The name of the typeface you defined here \definefontfamily[palation][rm][Palatino Linotype] isn’t the same which you use here \setupbodyfont[palatino] 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 ___
[NTG-context] Use a predefined command in a new environment
Hello, Further to the discussion topic Numbering in a frame with a new environment I want to use ACFRAME (thanks Wolfgang) command in a new environment. Is this the best way to achieve this ? thank you, Fabrice \defineframed [ACFRAME] [frame=off, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \setupbodyfont[pagella,11pt] \definetextbackground [definitionframe] [command=\ACFRAME, backgroundoffset=.25cm, offset=.5cm, frame=off, location=paragraph, frame=off,] \defineenumeration [defi] [text=Définition, before={\startdefinitionframe}, after={\stopdefinitionframe}, style=italic, stopper=, ] \starttext \startdefi \input knuth \stopdefi \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 ___
[NTG-context] A new question on \definefallbackfamily
Hi, With the file below (and the latest Standalone) I get different output different times I compile. Sometimes the fourth 3 is bold and sometimes it is not (I don't want it to be bold). What is going on? I attach also the log files from a successful run (test.log) and a failure (test-error.log). Also, the pdf files are attached. (what I want is to use the light font as default and the regular one as bold...) Best regards, Mikael %%% TEST FILE \definefontfamily [lundfaces] [rm] [Adobe Garamond Pro][opticalsize=yes] \definefontfamily [lundfaces] [ss] [FrutigerLTstd][opticalsize=yes,tf=style:light,it=style:lightitalic,sl=style:lightitalic,bf=style:normal,scale=0.92] \definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [preset=math:lowercaseitalic,tf=style:lightitalic,scale=0.92] \definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [preset=math:lowercasebolditalic,tf=style:italic,scale=0.92] \definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [preset=math:lowercasenormal,tf=style:light,scale=0.92] \definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [preset=math:lowercasebold,tf=style:normal,scale=0.92] \definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [preset=math:uppercaseitalic,tf=style:lightitalic,scale=0.92] \definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [preset=math:uppercasebolditalic,tf=style:italic,scale=0.92] \definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [preset=math:uppercasenormal,tf=style:light,scale=0.92] \definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [preset=math:uppercasebold,tf=style:normal,scale=0.92] \definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [preset=math:digitsnormal,tf=style:light,scale=0.92] \definefallbackfamily [lundfaces] [math] [FrutigerLTstd] [preset=math:digitsbold,tf=style:normal,scale=0.92] \definefontfamily [lundfaces] [math] [TeX Gyre Pagella Math] \definebodyfontenvironment[18pt] \setupbodyfont[lundfaces,ss,18pt] \starttext {3 $3$} {\bf 3 $3$} \stoptext %%% END TEST FILE open source 1 1 /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.04.28 23:24 MKIV beta fmt: 2014.4.29 int: english/english system 'cont-new.mkiv' loaded open source 2 2 /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv close source 2 2 /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system files jobname 'test', input './test', result 'test' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 /home/mickep/Dropbox/lth/mall/test.tex fontspreloading modern-designsize (mono) fontstypescripts unknown library 'modern-designsize' or 'modern' fonts'fallback modern-designsize tt 18pt' is loaded backend xmp using file '/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1 close source 2 3 /home/mickep/Dropbox/lth/mall/test.tex close source 1 3 /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv system structure start used structure used structure text: test system structure stop used structure system files start used files used file 1: filename=cont-yes.mkiv filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database used file 2: filename=cont-new.mkiv filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database used file 3: filename=lang-us.lua filetype=scripts foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database used file 4: filename=/home/mickep/Dropbox/lth/mall/test.tex foundname=/home/mickep/Dropbox/lth/mall/test.tex usedmethod=direct used file 5: filename=texgyre.lfg filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/fonts/texgyre.lfg usedmethod=database used file 6: filename=FrutigerLTStd-Light.otf filetype=otf format=otf foundname=/home/mickep/.fonts/FrutigerLTStd-Light.otf usedmethod=filesystem used file 7: filename=texgyrepagella-math.otf filetype=otf format=otf foundname=/home/mickep/ConTeXt/tex/texmf/fonts/opentype/public/tex-gyre-math/texgyrepagella-math.otf usedmethod=database used file 8: filename=/home/mickep/.fonts/FrutigerLTStd-LightItalic.otf format=otf foundname=/home/mickep/.fonts/FrutigerLTStd-LightItalic.otf usedmethod=direct used file 9: filename=/home/mickep/.fonts/FrutigerLTStd-Italic.otf format=otf foundname=/home/mickep/.fonts/FrutigerLTStd-Italic.otf usedmethod=direct used file 10: filename=/home/mickep/.fonts/FrutigerLTStd-Roman.otf format=otf foundname=/home/mickep/.fonts/FrutigerLTStd-Roman.otf usedmethod=direct used file 11: filename=FrutigerLTStd-Roman.otf
Re: [NTG-context] Use a predefined command in a new environment
Am 29.04.2014 um 20:16 schrieb Fabrice couvreur.fabr...@wanadoo.fr: Hello, Further to the discussion topic Numbering in a frame with a new environment I want to use ACFRAME (thanks Wolfgang) command in a new environment. Is this the best way to achieve this ? Take a look into the metafun manual, it has a few examples for framed texts where the the enumeration title sits in a separate frame. 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] Advanced ligatures
On 2014-04-29 Wolfgang Schuster wrote: Am 29.04.2014 um 16:21 schrieb Jan Tosovsky j.tosov...@email.cz: is there any way to switch the hlig or dlig features on? The corresponding glyphs are present in the font, but somehow ignored. The name of the typeface you defined here \definefontfamily[palation][rm][Palatino Linotype] isn't the same which you use here \setupbodyfont[palatino] What a stupid mistake! Now it works as expected. Thanks a lot! Jan ___ 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] Paragraph itemizes
Use the “intext” keyword. This is exactly what I was looking for, thanks again 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 ___
[NTG-context] How to do font fallback for math?
Hi all, Basically I’m trying to use the Neo Euler font for math. It’s missing some symbols, and I would like to fallback to some other fonts. But I’m having trouble setting up this fallback. For example, % Use lmr to type numbers? \definefontfallback[somefbk][name:lmroman12][0x30-0x39][force=yes] % Trying to use Neo Euler here \starttypescript [math] [myEuler] \definefontsynonym[MathRoman][name:neoeuler][features=math\mathsizesuffix, fallbacks=somefbk] \stoptypescript \starttypescript[Test] \definetypeface[Test][mm][math][myEuler][default][rscale=0.95] \stoptypescript \usetypescript[Test] \setupbodyfont[Test] \starttext \startformula \Omega = \int_0^x \sin 2x\, {\rm d}x \stopformula \stoptext But in the generated PDF, the “0” and “2” are both typed in Euler. What should I do to get them fallback to lmr? Thanks! -- Darksair | http://darksair.org/ HTML emails are *evil*!!! Use the most righteous format---plain text. ___ 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] Position of integral limits
Hi, I notice today that in display math, \int_a^b places a and b completely below and above the integral symbol, rather than offsets them to the right at the bottom and top as LaTeX does by default. I also notice that I can use \int\nolimits to achieve the LaTeX result. Is this the supposed behavior of ConTeXt? Because I remember this was not the case 2 years ago. Also can I somehow let ConTeXt use that \nolimits by default? Thanks. -- Fear is the path to the dark side. Fear leads to anger, Anger leads to hate, Hate leads to suffering ___ 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 ___