Re: [NTG-context] Math steps (s-pre-50)
use s-pre-60 instead as in: \usemodule[s-pre-61] This works but seems to be a JavaScript solution which does not work in Evince. Is there a way to have it produce separate frames (i.e., pages) for each step? Troy ___ 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] Math steps (s-pre-50)
\FlushStep does not seem to work when revealing steps in a mathalignment. Is there a known solution for showing rows of a mathalignment in their own frame? Here is the code that I am using: \usemodule[s-pre-50] \starttext \StartSteps \startformula \startmathalignment[n=3,align={right,middle,left}] \NC a \NC = \NC b + c \NR \FlushStep \NC \NC = \NC b - d + d + c \NR \FlushStep \stopmathalignment \stopformula \StopSteps \stoptext – Troy ___ 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] Lucida Type1 Fonts
I have been using TUG's Lucida Type1 fonts for a while in ConTeXt, but a recent update of the standalone version of ConTeXt is giving the following when building a document containing math: unknown math characters: μ (U+003BC) σ (U+003C3) χ (U+003C7) (n=44) Obviously, it's having a problem with \mu and \chi, and these characters are showing up as a ? in the document. Does anyone know what may have changed recently to break Lucida Type1 support? Troy ___ 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] Tables, Row Span, and Colors
Updating ConTeXt minimals fixed my problem. Thank you. Troy ___ 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] Tables, Row Span, and Colors
Thank you Wolfgang. The attached PDF is the output I get from using your code. This is LuaTeX, Version beta-0.79.2 (TeX Live 2015/dev) (rev 5084) Troy foo.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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Tables, Row Span, and Colors
The following code produces my table, but I could not get the text Region to span rows 3-7. So, I would like 1. the word Region to be inside the table and not hacked in the way that I have it. 2. to make the (spanned) cell containing Years have a gray background. 3. to make each of the column heading cells (i.e., the ones containing 1, 1-2, ..., 15+, and Total to have a gray background. 4. to have the (spanned) cell containing Region (from #1) have a gray background. 5. to have the row heading cells (i.e., the ones containing East, Midwest, South, West, and Total) have a gray background. I would appreciate any help in attaining this wish list. Thanks in advance, Troy —— Code Starts Here —— \setupcolors[state=start] \starttext \null\vskip15ex \hskip1em\framed[orientation=90,frame=off]{\bf Region}\blank\vskip-25.5ex \starttable[|c|l|r|r|r|r|r|r|r|] \DC \DC \DL[7] \DR \NC \NC \VL \use{7}\ReFormat[cB]{Years} \VL \AR \DC \DC \DL[7] \DR \NC \NC \VL \ReFormat[cB]{$1$} \VL \ReFormat[cB]{$1-2$} \VL \ReFormat[cB]{$3-4$} \VL \ReFormat[cB]{$5-9$} \VL \ReFormat[cB]{$10-14$} \VL \ReFormat[cB]{$15+$} \VL \ReFormat[cB]{Total} \VL \AR \HL %\VL \offset[y=8ex]{\framed[orientation=90,frame=off]{\bf Region}} \VL East \VL 32 \VL 54 \VL 59 \VL 112 \VL 77 \VL 118 \VL 452 \VL \AR \VL \null\hskip2em\null \VL {\bf East} \VL 32 \VL 54 \VL 59 \VL 112 \VL 77 \VL 118 \VL 452 \VL \AR \VL \VL {\bf Midwest} \VL 31 \VL 68 \VL 68 \VL 120 \VL 63 \VL 173 \VL 523 \VL \AR \VL \VL {\bf South} \VL 53 \VL 92 \VL 93 \VL 158 \VL 106 \VL 158 \VL 660 \VL \AR \VL \VL {\bf West} \VL 41 \VL 56 \VL 67 \VL 78 \VL 45 \VL 86 \VL 373 \VL \AR \DC \DL[8] \DR \VL \VL {\bf Total} \VL 157 \VL 270 \VL 287 \VL 468 \VL 291 \VL 535 \VL 2008 \VL \AR \HL \stoptable \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] Positioning an arrow between two values (Metapost)
\starttext \startMPcode u:=1cm ; path p, q ; p=fullsquare scaled u ; q=fullsquare scaled u shifted (4u,-2u) ; draw p ; draw q ; drawarrow center p--center q ; label(btex $5$ etex,center p) ; label(btex $-2 $ etex,center q) ; \stopMPcode \stoptext How about something like below. I'm not sure exactly how ncline works in PStricks, but this macro takes 4 arguments, namely a point, its corresponding label, a second point, and its corresponding label. \starttext \startMPcode vardef ncline (expr A,h,B,k) = save p,q; path p,q; label(h,A); p:=fullsquare scaled u shifted A; draw p; label(k,B); q:=fullsquare scaled u shifted B; draw q; drawarrow (A--B) cutbefore p cutafter q; enddef; u:=1cm ; ncline(origin,btex $5$ etex,(4*u,-2*u),btex $-2$ etex); \stopMPcode \stoptext Troy Henderson ___ 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] textbackground inside itemize
The following code produces a textbackground whose background color enters into the itemize label area on the second (and succeeding) lines of the paragraph. I would appreciate advice on fixing this. Thanks, Troy Henderson --- \setuppapersize[letter,landscape][letter,landscape] \definetextbackground[foo][ state=start, location=paragraph, background=color, backgroundcolor={0.875,0.875,0.875}, frame=off ] \starttext \startcolumns[n=2,rule=on] \startitemize[n,2*broad] \item Here is my first item \starttextbackground[foo] Here is some long text that demonstrates how the background color is wrong on the second line and all successive lines of this paragraph. \stoptextbackground \item Here is my second item \stopitemize \stopcolumns \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] Resetting \setupTABLE
Thank you both for your response. Troy ___ 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] Resetting \setupTABLE
What is the proper way to reset the setups made by \setupTABLE so that successive TABLEs do no inherit the properties set by previous TABLEs? -- Troy Henderson ___ 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] Appendix Page Numbering
I have now :-) which now reflects may changes, but now I have to figure out why my changes aren't working as expected. :-/ After trying for quite some time, I believe it's safe to say that someone with more knowledge of Lua and the internals of ConTeXt may have to look into this as I may be underqualified. Troy ___ 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] Appendix Page Numbering
Is it possible to have ONLY the prefix (not followed by the corresponding page number) with this implementation? If not, is that a feature that can also be added? I tried to create a custom label called viewercustom (which operates like viewerprefix but omits the userpage counter value), but I have been unsuccessful . I modified the following four files (which were the only files that I could find containing viewerprefix) ./tex/texmf-context/tex/context/base/strc-pag.mkiv ./tex/texmf-context/tex/context/base/strc-pag.lua ./tex/texmf-context/tex/context/base/mult-def.mkiv ./tex/texmf-context/tex/context/base/lpdf-mis.lua Is there something else that needs to be modified that I am missing? Troy ___ 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] Appendix Page Numbering
Did you regenerate the format? context --make. I have now :-) which now reflects may changes, but now I have to figure out why my changes aren't working as expected. :-/ Troy ___ 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] Installation Bug with Minimals
I have identified the problem. I have ConTeXt minimals installed simultaneously with ConTeXt from TeXLive 2013. Unsetting the environmental variable TEXMFMAIN (which was set to my TeXLive 2013 TEXMF directory) fixes the problem. Perhaps the minimals installation should unset (or ignore) this variable. Troy ___ 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] Appendix Page Numbering
anyhow, i'll add this: \setupuserpagenumber[viewerprefix=titlepage] \startstandardmakeup The first page \stopstandardmakeup \setupuserpagenumber[viewerprefix=p ] Thanks Hans. That works great. Is it possible to have ONLY the prefix (not followed by the corresponding page number) with this implementation? If not, is that a feature that can also be added? Troy ___ 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] Installation Bug with Minimals
Can you show the content of your file foo.tex. \starttext Hello World \stoptext but it does this for ALL ConTeXt source files that I try to build (even ones that have built fine in the past). Troy ___ 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] Appendix Page Numbering
Have you updated you installation because the viewerprefix key was added yesterday. Oh no. I'm using the TeXLive 2013 ConTeXt. Is the update something I can do on this, or do I have to download and install minimals? \dorecurse{2}{\dontleavehmode\page} Thanks. ___ 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] Installation Bug with Minimals
I've done the following steps on two different machines (both running Gentoo Linux) for installing ConTeXt minimals. mkdir /opt/context cd /opt/context rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh . ./first-setup.sh cd working directory for foo.tex . /opt/context/tex/setuptex context foo.tex There seems to be problems with ConTeXt finding fonts. The output from the `context foo.tex` run(s) is below: Troy -- context foo.tex mtx-context | run 1: luatex --fmt=/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=foo --lua=/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c:fulljobname=./foo.tex --c:input=./foo.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746) \write18 enabled. (/opt/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.02.14 17:07 MKIV beta fmt: 2014.2.15 int: english/english system 'cont-new.mkiv' loaded (/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv) system files jobname 'foo', input './foo', result 'foo' fontslatin modern fonts are not preloaded languageslanguage 'en' is active (/home/thenders/tmp/foo.tex{/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontsdefining font with asked name 'lmroman12-regular' is not found using lookup 'file' fontsdefining unknown font 'lmroman12-regular', loading aborted fontsdefining unable to define 'lmroman12-regular' as 'modern-designsize-12pt-rm-tf-0--0' fontsdefining forced type 'otf' of 'latinmodern-math-regular' not found fontsdefining font with asked name 'latinmodern-math-regular' is not found using lookup 'file' fontsdefining unknown font 'latinmodern-math-regular', loading aborted fontsdefining unable to define 'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mr--3' fontsdefining forced type 'otf' of 'latinmodern-math-regular' not found fontsdefining font with asked name 'latinmodern-math-regular' is not found using lookup 'file' fontsdefining unknown font 'latinmodern-math-regular', loading aborted fontsdefining unable to define 'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mr--2' fontsdefining forced type 'otf' of 'latinmodern-math-regular' not found fontsdefining font with asked name 'latinmodern-math-regular' is not found using lookup 'file' fontsdefining unknown font 'latinmodern-math-regular', loading aborted fontsdefining unable to define 'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mr--1' fontsdefining forced type 'otf' of 'latinmodern-math-regular' not found fontsdefining font with asked name 'latinmodern-math-regular' is not found using lookup 'file' fontsdefining unknown font 'latinmodern-math-regular', loading aborted fontsdefining unable to define 'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mb--3' fontsdefining forced type 'otf' of 'latinmodern-math-regular' not found fontsdefining font with asked name 'latinmodern-math-regular' is not found using lookup 'file' fontsdefining unknown font 'latinmodern-math-regular', loading aborted fontsdefining unable to define 'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mb--2' fontsdefining forced type 'otf' of 'latinmodern-math-regular' not found fontsdefining font with asked name 'latinmodern-math-regular' is not found using lookup 'file' fontsdefining unknown font 'latinmodern-math-regular', loading aborted fontsdefining unable to define 'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mb--1' fontsmath: unset for global bodyfont modern-designsize at 12pt fontsmath: unset for global bodyfont modern-designsize at 12pt fonts'fallback modern rm 12pt' is loaded fontsmath: unset for global bodyfont modern-designsize at 12pt fontsmath: unset for global bodyfont modern-designsize at 12pt backend xmp using file '/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1 fonts!! No bodyfont has been defined and no defaults have been fonts!! loaded (maybe due to a missing \starttext). ) ) mkiv lua stats used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path: /opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats
Re: [NTG-context] Appendix Page Numbering
\setupuserpagenumber[viewerprefix=titlepage] \startstandardmakeup The first page \stopstandardmakeup \setupuserpagenumber[viewerprefix=p ] I'm clearly missing something. Troy \setupinteraction[state=start] \defineconversionset[frontpart:pagenumber][][romannumerals] \defineconversionset[bodypart:pagenumber][][numbers] \defineconversionset[appendix:pagenumber][][Characters] \setupuserpagenumber[numberconverionset=pagenumber,way=byblock] \placebookmarks[chapter,section][chapter][force=yes] \starttext \startfrontmatter \startchapter[title={Cover}]\stopchapter \dorecurse{2}{\mbox{}\page} \setupuserpagenumber[viewerprefix=titlepage] \startstandardmakeup \startchapter[title={Title Page}] \stopchapter \stopstandardmakeup \setupuserpagenumber[viewerprefix=p ] \stopfrontmatter \startbodymatter \stopbodymatter \stoptext http://www.ntg.nl/mailman/listinfo/ntg-context ___ 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] Appendix Page Numbering
Andreas, Thank you for the reply. I'm afraid that I don't know how to manually manipulate the PDF Catalog. I was able to successfully build the code on this page http://www.ntg.nl/pipermail/ntg-context/2008/036947.html but I had to add \placebookmarks[chapter,section][chapter][force=yes] and although I have Evince's Index visible, all of the PageLabels are 1 and when I click on the entry it doesn't change to the correct page. I do get an error from Evince that says failed to look up aut:3 or another number. I'm not sure what my options are. Troy ___ 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] Appendix Page Numbering
Hans, Attached is a screenshot of what your output looks like in Evince. I am trying to get the Page Number listed as A for the Appendix. Troy attachment: screenshot.png___ 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] Appendix Page Numbering
I do have an older version of Evince on this machine (v. 2.32.0). I have a new version installed on another machine. I will check it there. Thank you very much. My only question now would be how to remove the 1 and A PRECEDING the chapter names (as indicated in the attached editing of Aditya's screenshot). Troy attachment: screenshot.png___ 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] Appendix Page Numbering
My desired PDF PageLabels are in the attached PNG. I have also attached a ConTeXt source file that attempts attempts this, but clearly I am missing a bit. I would appreciate any help in accomplishing this effect. Troy attachment: screenshot.png foo.tex Description: TeX 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Appendix Page Numbering
Any thoughts on getting these custom PDF bookmark/index entries? Thanks in advance, Troy ___ 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] Appendix Page Numbering
Wolfgang, Thank you for your response. Unfortunately, this does not quite work. The page numbers are correct, but they're not showing up like the previous screenshot in Evince's index. I've attached my ConTeXt source as well as the output PDF and a screenshot of Evince's Index view. Troy foo.tex Description: TeX document foo.pdf Description: Adobe PDF document attachment: screenshot.png___ 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] Appendix Page Numbering
I use \definestructureconversionset [frontpart:pagenumber][][romannumerals] to make sure the numbering of my pages in frontmatter use Roman numerals. Not only are the pages numbered with Roman numerals, but the PDF index links and PDF page numbers use this as well. I would like to do something similar for the backmatter, but I would like both the page numbers and the PDF index links and PDF page numbers look like A1, A2, ... (for appendix). How can this be done? Thanks, Troy Henderson ___ 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 doesn't work in TL 2013 / latest ConTeXt
Did we change something with the type 1? In mkiv ... we probably never finished the mappings ... waste of time now that we have otf. This makes me believe that I will eventually HAVE to purchase (and by purchase I really mean re-purchase) the OTF versions in order to use my Lucida fonts. This is a bit discouraging. Troy ___ 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 doesn't work in TL 2013 / latest ConTeXt
Given the amount of re-work that went into Lucida OT, a re-purchase is justified ;) That all depends on how it is being used. I'm not sure what advantage the OT version of the font would have to me over the Type1 version. If a reasonable justification could convince me, then I might agree. Troy ___ 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] MetaPost Function Grapher
Is it possible allowing export to Tikz or Pgfplots? If I would had the opportunity to also download the source Tikz or Pgfplots, it would be absolutely amazing. Unfortunately, I don't know TikZ or PGF, so not only would I have to learn these, but I would also have to rewrite the code to include this output. This is not a small feat. I do not currently have plans for this. Troy ___ 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] MetaPost Function Grapher
The MetaPost output from my Function Grapher http://www.tlhiv.org/mpgraph/ is now available in ConTeXt format. This can be illustrated by choosing a graph type and selecting an example from one of the Example buttons. Once the graph is drawn, the ConTeXt source can be downloaded using the Download drop-down box. Simply executing `context mpgraph.tex` should produce the same graph viewed on the website in PDF. If you see any bugs, feel free to let me know. Troy Henderson ___ 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] HTML output
I would like to convert my ConTeXt document to both PDF and plain HTML. I need plain HTML output (i.e., not XML or XHTML) because my institution's web based management software allows me to copy/paste plain HTML snippets but not XML or XHTML. Is it possible for ConTeXt to output HTML so that the result looks as close to the PDF output as possible? Troy Henderson ___ 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] \setupitemgroup symbol
I would like to use the section symbol \S as the symbol of an itemized (non-enumerated) list. It seems that the wiki shows 9 predefined bullet types, but I don't see how to use a custom bullet type. Troy ___ 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] \setupitemgroup symbol
\definesymbol[100][§] % or \definesymbol[100][\S] \setupitemgroup[symbol=100] Thank you Troy ___ 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] \setupitemgroup symbol
\starttext \definesymbol[100][§] % or \definesymbol[100][\S] \setupitemgroup[symbol=100] \startitemize[100] \item This is a test. How can I ensure there is no space between the \S and This is a test? Troy ___ 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] Logical Page Numbers (PDF Bookmarks)
I know how to make the page numbers in the frontmatter to use Roman numerals, say, and in the bodymatter use Arabic numerals. I also know how to reset the page counter so that the numbering starts over after the frontmatter. However, I would like to have the page numbers appear in the PDF bookmarks appear as i, ii, iii, ... , 1, 2, 3, ... If there are 5 pages in the frontmatter, then all of my page numbers are off by 5 in the PDF bookmarks. How can this be fixed? Troy Henderson ___ 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] \copypages and page numbers
I have a scanned (raster) PDF that I am inserting into my document via \copypages. However, the document's page number is not showing on top of this raster PDF page (presumably because \copypages places the page on top of everything else). How can I ensure that the page number is on top of raster page instead of behind? Troy Henderson ___ 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] Indenting nested itemize
The following does not seem to indent the second level itemization. The first level is indented correctly by 2em, but the second level is not indenting by 4em. Troy Henderson \setupindenting[no] \setupitemgroup[itemize][1][][margin=2em] \setupitemgroup[itemize][2][][margin=4em] \starttext Here is some text \startitemize \item Here is an item \item Here is another item \startitemize \item Here is a sub-item \item Here is another sub-item \stopitemize \stopitemize \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] \starttable ... \stoptable padding
How do I adjust the margin/padding of \starttable ... \stoptable? In particular, can I make cells immediately next to one another without any padding? Troy Henderson ___ 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] Fixed Line Height
\appendtoks\fixedblankskip\to\everybeforeblankhandling This seemed to work just fine. probably \setupblank[line] is better This did not seem to work. :-( Troy ___ 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] Fixed Line Height
Use \setupblank[fixed,line]. Aditya's solution sees to force content at the bottom of the page to stay on the current page whereas Wolfgang's forces it to the next page. Both have benefits to me, so thanks for both solutions. Troy ___ 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] Fixed Line Height
Thanks Wolfgang for the explanation. \setupblank[fixed,big] works very well too. Now for another question. I have modified SlideWithSteps from http://wiki.contextgarden.net/SlideWithSteps It seemed not to like \eject and I replaced \phantom{ ... } with \setlayer[StepsHiddenLayer]{ ... } where StepsHiddenLayer is a layer created with \definelayer[StepsHiddenLayer][state=stop] See attached slide-with-steps.tex This seems to work fine with itemized lists and even MetaPost figures (see foo.tex) but it fails with multiline equations (bar.tex) which are both attached. I would like a solution that would allow me to reveal each line of a multiline equation. Troy slide-with-steps.tex Description: TeX document foo.tex Description: TeX document bar.tex Description: TeX 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Fixed Line Height
Your macros slide-with-steps are very nice For the record, these are not my macros. Aren't they yours? Anyway, the only thing I changed from what's on http://wiki.contextgarden.net/SlideWithSteps is I changed \eject to \page[yes] and I changed \phantom{ ... } to \setlayer[StepsHiddenLayer]{ ... } where StepsHiddenLayer is a hidden layer. Like you said, the problem seems to be that I cannot do \setlayer[StepsHiddenLayer]{ ... } on a row of an align. Surely there is a solution to this. I will post it now to a separate post. Troy ___ 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] \setlayer on \startalign row
I would like to make a row of a \startalign ... \stopalign hidden. The following fails. \starttext \definelayer[hiddenlayer][state=stop] \startformula \startalign[n=3,align={right,middle,left}] \NC a \NC = \NC b \NR \setlayer[hiddenlayer]{\NC a + c \NC = \NC b + c \NR} \stopalign \stopformula \stoptext Troy Henderson ___ 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] \setlayer on \startalign row
Aditya, Thanks for your steps.tex. The following example does not work as expected. In particular, the first equation moves from page 1 to page 2, and the 12 x moves from page 2 to page 3. Troy \StartStepping{10} \startformula \startalign[n=4,align={right,right,middle,left}] \STEP{1}{\NC \NC \frac{2}{3}x-\frac{3}{4} \NC = \NC \frac{1}{6}x+\frac{21}{4} \NR} \STEP{2}{\NC 12\times\NC \NC \NC \NR} \STEP{3}{\NC \NC \left(12\cdot\frac{2}{3}x\right) - \left(12\cdot\frac{3}{4}\right) \NC = \NC \left(12\cdot\frac{1}{6}x\right) + \left(12\cdot\frac{21}{4}\right) \NR} \STEP{4}{\NC \NC 8x - 9 \NC = \NC 2x + 63 \NR} \STEP{5}{\NC \NC 8x - 9 - 2x \NC = \NC 2x - 2x + 63 \NR} \STEP{6}{\NC \NC 6x - 9 \NC = \NC 63 \NR} \STEP{7}{\NC \NC 6x - 9 + 9 \NC = \NC 63 + 9 \NR} \STEP{8}{\NC \NC 6x \NC = \NC 72 \NR} \STEP{9}{\NC \NC \frac{6x}{6} \NC = \NC \frac{72}{6} \NR} \STEP{10}{\NC \NC x \NC = \NC 12} \stopalign \stopformula \StopStepping ___ 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] \setlayer on \startalign row
Aditya, Can you confirm this phenomenon? Troy ___ 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] \setlayer on \startalign row
For display equations, the following will also work (but it is very tedius to type) Good workaround. Troy ___ 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] \setlayer on \startalign row
Any idea how to put a \framed{ ... } around \NC \NC x \NC = \NC 12 Troy ___ 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] Fixed Line Height
When a page begins to get full, TeX automatically squeezes lines slightly closer together (vertically) to help the page break where it thinks that it should. If the page is less than full, then the (vertical) distance between lines is fixed. How can I make this fixed distance remain fixed even as the page starts approaching full? That is, I don't want the lines to squeeze together when the page gets full. I'm familiar with \clubpenalty \interlinepenalty \displaywidowpenalty \widowpenalty \keeplinestogether (ConTeXt) but I'm not sure how to use any/all of these to get this effect. Troy Henderson ___ 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] Sans Serif Math Font
Does the OTF version of the Lucida fonts have correct math sans serif? If so, I may likely purchase them. Troy ___ 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] Sans Serif Math Font
if you really want a sans math font hvmath is probably a candidate (as is informal) Are you talking about this? http://www.micropress-inc.com/fonts/hvmath/hvmain.htm If I were to purchase the OTF version of this font, would I be able (fairly easily) in ConTeXt to typeset my entire document (text and math) using the sans serif Helvetica font? Is that something that would have to have a great amount of work done in ConTeXt to setup, or is it ready to go since it's in OTF format? Troy ___ 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] Sans Serif Math Font
Except that it gives you upright letters instead of italic ones. Indeed. If you figure out how to fix this, I would really appreciate it. Troy ___ 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] Sans Serif Math Font
What I don't know is how to properly switch to sans serif math globally/by default. The command \mathss gives upright instead of italic letters. If you figure that out, please let me know. That would be great. I am about to create an online mathematics course where I will be using quite a few onscreen presentations, and I really should be using sans serif fonts for this. So, any help you could provide would be outstanding. Thanks again Mojca, Troy ___ 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] Sans Serif Math Font
What I don't know is how to properly switch to sans serif math globally/by default. The command \mathss gives upright instead of italic letters. \appendtoks \mathss \to \everymathematics Troy ___ 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] Sans Serif Math Font
Are there any sans serif fonts with matching math (commercial or free) that work out of the box (or at least with very little configuration) with ConTeXt? Troy ___ 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] Sans Serif Math Font
My suggestion would be Lucida: I have the Type1 version of Lucida that works fine in ConTeXt, but I don't really get the sans serif math (to my knowledge). Does the OTF offer something that the Type1 doesn't? Troy ___ 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] Rotating \copypages
I have a PORTRAIT letter size PDF that I would like to include in my LANDSCAPE letter size document. I am doing \setuppapersize[letter,landscape] \starttext \copypage[foo.pdf] \stoptext but foo.pdf is being inserted as-is and thus is being clipped since the height of a letter size page is 8.5in and the height of foo.pdf is 11in. I would like to use \copypages to insert foo.pdf rotated 90 degrees. How can this be done? Troy Henderson ___ 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] Rotating \copypages
\copypages[…][][orientation=90] Excellent. Thank you! Troy ___ 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] Table of Contents Spacing
How do I change the vertical spacing between chapter/section list items in the Table of Contents? It appears that the spacing between chapter items is about 2ex (or so) and perhaps 1ex (or so) between section items. Troy ___ 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] Table of Contents Spacing
\setuplist [chapter] [before={\blank[5ex]}] Thank you! Troy ___ 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] Suppress a Single Chapter from ToC
\startchapter[title=…,saveinlist=no] Unfortunately, this removes the PDF bookmark for this chapter. I would like to keep the left side bookmark but not show it in the Table of Contents. Troy ___ 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] Suppress a Single Chapter from ToC
Unfortunately, this removes the PDF bookmark for this chapter. I would like to keep the left side bookmark but not show it in the Table of Contents. What I would like is to have my title page followed by my table of contents both have PDF bookmarks and neither listed in the actual table of contents. Currently, I'm (badly) faking it by \startchapter[title={Title Page},list={\mbox{}}] ... \stopchapter \startchapter[title={Table of Contents},list={\mbox{}}] ... \placecontent[criterium=all] \stopchapter This does create bookmarks for both pages, but it creates a very narrow link to these pages on the ToC page. I don't want any evidence of those chapters listed on the ToC page. Troy ___ 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] Suppress a Single Chapter from ToC
I apologize for the multiple messages, but it seems that I solved my problem with \placebookmarks[chapter,section,subsection][chapter,section][force=yes] The force=yes was the key to forcing bookmark generation of those chapters not listed in the ToC with saveinlist=no. Troy ___ 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] PDF Bookmarks
I would like to create PDF bookmarks in my ConTeXt document, but I do not want my document arranged in normal chapter/sections. I know that I can do \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark] and then in my document I can do \chapter{Foo} In this case, my PDF bookmark appears as 1 Foo. Furthermore, in the document itself, the chapter heading shows as 1 Foo. I would like the bookmark to just appear as Foo and I do not want ANY chapter/section headings when I issue the \chapter{Foo} or \section{Bar} commands. That is, in the document, I would like those commands to basically JUST create the bookmarks and have the bookmarks omit the chapter/section number. Troy ___ 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] PDF Bookmarks
\setuphead[chapter,section,subsection][number=no,placehead=no] Outstanding. The only problem that I have now is that issuing \chapther{Foo} immediately before \copypages[path/to/file.pdf] forces a new (blank) page before the external page is inserted. Without the \chapter{Foo} command, this new page is not inserted. Troy ___ 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] PDF Bookmarks
\chapter{Foo}\page[no] \copypages[path/to/file.pdf] did the trick. Troy ___ 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] Suppress a Single Chapter from ToC
How can I suppress a single (one particular) chapter from being printed in the Table of Contents? Troy ___ 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] Mixing Body and Math Fonts
\appendtoks \mathss \to \everymathematics That appears to work. Thanks. Perhaps I should, instead, try to use a sans math font such as Computer Modern Bright. I know it's not complete (as far as sans math is concerned), but it's probably better than forcing all math to be sans. \setmathfont[Computer Modern Bright] does not work. Troy ___ 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] MdSymbol as Math Font
I would like to use the OTF versions of MdSymbol located at http://www.ctan.org/tex-archive/fonts/mdsymbol/otf as my math font. I have dropped the 3 OTF files into my user's font directory and run mtxrun --script fonts --reload Also, I get the following output after executing the list command. mtxrun --script fonts --list --all --pattern=MdSymbol* mdsymbol mdsymbolbold MdSymbol-Bold.otf mdsymbolbold mdsymbolbold MdSymbol-Bold.otf mdsymbollight mdsymbollight MdSymbol-Light.otf mdsymbolnormal mdsymbolregularMdSymbol-Regular.otf mdsymbolregularmdsymbolregularMdSymbol-Regular.otf mdsymbolsemibold mdsymbolsemibold MdSymbol-Semibold.otf So it seems that ConTeXt is finding my fonts; however, when I set \usemodule[simplefonts] \setmathfont[MdSymbol] in my ConTeXt document and run `context foo.tex`, I get resolversmodules loaded: 'simplefonts' (/usr/local/texlive/current/texmf-dist/tex/context/third/simplefonts/t-simplefonts.tex loading ConTeXt User Module / Simplefonts + /usr/local/texlive/current/texmf-dist/tex/context/third/simplefonts/t-simplefonts.lua) fontstypescripts unknown: library 'loc' {/usr/local/texlive/current/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/usr/local/texlive/current/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{/usr/local/texlive/current/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} fontstypescripts unknown: library 'mdsymbol' backend xmp using file '/usr/local/texlive/current/texmf-dist/tex/context/base/lpdf-pdx.xml' pagesflushing realpage 1, userpage 1 )/usr/local/texlive/current/texmf-dist/fonts/opentype/public/lm/lmmath-regular.otf/usr/local/texlive/texmf-local/fonts/otf/myriadpro/MyriadPro-Regular.otf The trouble seems to be the line fontstypescripts unknown: library 'mdsymbol' which I guess is keeping the MdSymbol OTFs from being loaded, but I have no idea how to fix this. I would appreciate any help that can be provided. Thanks, Troy Henderson ___ 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] MdSymbol as Math Font
I have dropped the 3 OTF files into my user's font directory Apologies, there are 4 OTF files. Troy ___ 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] MdSymbol as Math Font
Apologies, there are 4 OTF files. Just so there is no misunderstanding, the problem still exists with 3 or 4 OTF files. That is, the first email was a typo and in fact I had all 4 OTF files installed and recognized by ConTeXt. I am not sure how to get ConTeXt to use these OTF files for my math fonts. Troy ___ 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] Thickness of right border for table cell
In order to change the width of the bottom border of the first row of a natural table to 2bp, I can do \setupTABLE[row][1][after={\hrule width\hsize height 2bp}] and I have tried doing \setupTABLE[column][1][after={\vrule height\vsize width 2bp}] to change the width of the right border of the first column, but this does not work. I would appreciate some expertise on this. Thanks, Troy Henderson ___ 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] Mixing Body and Math Fonts
I normally use \setupbodyfont[lucida] to use Lucida as my body AND math font. I also use \usemodule[simplefonts] \setmainfont[Myriad Pro] to use Myriad Pro as my body font (when no math is used). I would like to, however, now mix these so that I can use Lucida for my math and Myriad Pro everywhere else. What is the best way to accomplish this? Thanks, Troy Henderson ___ 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] Mixing Body and Math Fonts
\setmathfont[lucida] Thank you very much. Troy ___ 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] Mixing Body and Math Fonts
\setmathfont[lucida] This is probably asking too much, but is it possible to have the Lucida math fonts with no serifs (or at least as many characters that are available with sans serif)? \setmathfont[lucida,sans] does not work. Troy ___ 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] Mixing Body and Math Fonts
\startformula {\mathss F(x) = \int_a^x f(t)\,dt} \stopformula is about as good as I could expect since (to my knowledge) Lucida does not contain a complete sans math set. Is there a way to get the affect above by default without having to enclose every formula in {\mathss ... }? Troy ___ 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] MetaPost Animations
I've added a few more animations since my last post. They can be accessed at http://www.tlhiv.org/animations There is one in particular that, I think, is quite impressive. It is an animation of a function f(x,y,t) where t is time. It is available at the aforementioned link or directly at http://www.tlhiv.org/animations/nocgi/function_surface.html Troy ___ 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] MetaPost Animations
Bonus question: independent from the gears shape (assume that it stays as it is), there is something fundamentally wrong with the animation. What is that? ;) When fixing the teeth, I broke the direction of one of the gears. It's repaired now. Troy ___ 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] MetaPost Animations
I've created several animations using MetaPost/ConTeXt, and I have also created a webpage with these animations. The URL to the page is http://www.tlhiv.org/animations/ Feedback is appreciated, and if there is a particular animation that you would like to see included, let me know and I will attempt to code them up in MetaPost, provide the source code, and include them on the webpage. Troy Henderson ___ 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] MetaPost Animations
One thing, which you may know, gear teeth do not normally have rectangular profiles. This must be what Hans was talking about. Are you using the animations, or some frames perhaps, in a ConTeXt document? Well, actually I'm using ConTeXt/MetaPost to generate each frame of the animation automagically. The webpage will soon allow for downloading the source for each ConTeXt document. This generates a multi-page PDF where each page of the PDF is a frame of the animation. SWFtools (specifically, pdf2swf) can then be used to convert the PDF to SWF. Troy ___ 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] MetaPost Animations
Are the gears more correct now? Troy ___ 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] MetaPost Animations
I tried the TeX file for your Gibbs phenomena animation: I could not get the same pictures as you show on your webpage. I built the TeX file with ConTeXt. I am using the ConTeXt that comes with TeX Live 2012. context gibbs.tex Troy ___ 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] Numerical Calculations
How did you produce a video out of the PDF? I wrote a BASH script to automate this process, but essentially it involves converting each frame/page of the PDF to JPG and then combining the JPG sequence into a MP4 movie. The hypocycloid example has 191 frames, and so I did something like: let n=0; while [ $n -lt 191 ] do convert -density 720 hypocycloid.pdf[$n] -resize x720 -flatten -gravity center -extent 1280x720 -quality 100 hypocycloid-$n.jpg done ffmpeg -r 13 -i hypocycloid-%d.jpg -b 5000k -vcodec libx264 -y hypocycloid.mp4 ___ 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] Numerical Calculations
Is there a way to for ConTeXt to do basic arithmetic operations? For example, \calc{1+2} and have it return 3 or \calc{1/3.8} and have it return 0.263157894736842 (or rounded) Troy ___ 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] Numerical Calculations
Do \luaexpr{1/3.8} and \ctxcommand{format(@0.3f,1/3.8)} return numbers or strings? That is, I would like to use these results in a \if or \ifnum command to exit a \doloop. Troy ___ 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] Numerical Calculations
In case anyone cares, here is the finished product which is a frame-by-frame animation of a hypocycloid. The following code will produce a 190 page PDF where each page is an individual frame of the animation. Troy \edef\r{\luaexpr{1/3.8}} % Radius of smaller circle (larger circle has radius 1) \edef\N{10} % Number of frames in animation per hypocycloid branch \edef\K{1}\doloop{\ctxlua{commands.doifelse(math.abs(\K*\r - math.floor(\K*\r+0.5))0.01)}{\exitloop}{\edef\K{\luaexpr{\K+1 \startMPinclusions[+] r:=\r; % Radius of smaller circle (larger circle has radius 1) u:=70; % Scaling factor for the graphics K:=\K; % Number of branches per period (computed automatically) M:=8; % Number of points in the Bezier curve for each branch N:=\N; % Number of frames in animation per hypocycloid bran path p; % p is the first branch of the hypocycloid p:=(1,0) for m=1 upto (M-1): .. (r*cosd(360*(r-1)/(M-1)*m)-(r-1)*cosd(360*r/(M-1)*m),r*sind(360*(r-1)/(M-1)*m)-(r-1)*sind(360*r/(M-1)*m)) endfor; W:=ceiling(u/32*65); % Width of each figure's bounding box H:=W; % Height of each figure's bounding box path q; \stopMPinclusions \starttext \dorecurse{\luaexpr{\K*\N}}{ \startMPpage m:=floor((\recurselevel-1)/N); n:=\recurselevel-m*N-1; numeric s[]; t:=n/N; q:=(((1-r)*cosd(360*r*t),(1-r)*sind(360*r*t))--((1+r)*cosd(360*(r-1)*t)-(r-1)*cosd(360*r*t),(1+r)*sind(360*(r-1)*t)-(r-1)*sind(360*r*t))); (s1,s2) = p intersectiontimes reverse q; for j=0 upto (m-1): draw p scaled u rotated (360*r*j) withcolor red; endfor; draw subpath (0,s1) of p scaled u rotated (360*r*m) withcolor red; draw fullcircle scaled (2*u); draw fullcircle scaled (2*r*u) shifted ((1-r)*u*cosd(360*r*t),(1-r)*u*sind(360*r*t)) rotated (360*r*m); draw subpath (s2,length q) of (reverse q) scaled u rotated (360*r*m); setbounds currentpicture to (-W/2,-H/2)--(W/2,-H/2)--(W/2,H/2)--(-W/2,H/2)--cycle; \stopMPpage } \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] Numerical Calculations
Very nice work, indeed. It reminds me of a drawing toy I had when I was a kid. Thanks a lot for sharing. Spirograph? http://en.wikipedia.org/wiki/Spirograph Troy ___ 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] Numerical Calculations
Here's the animated (video) version. http://www.youtube.com/watch?v=2_OZ-yKMd7g Troy ___ 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] Section Header and Enumerations
I would like for my section headers to have the following format: Section 1 -- First Section Section 2 -- Second Section ... and I would also like for enumeration lists, for example \startitemize[n] \item Foo \item Bar \stopitemize to look like 1-1 Foo 1-2 Bar where the 1- is the section number in which the itemize resides. Thanks, Troy Henderson ___ 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] Section Header and Enumerations
Provide a minimal example next time. Apologies. I certainly will. \setupitemgroup [itemize] [prefix=yes, width=2em] This produces 1.1, 1.2, etc. for me instead of 1-2, 1-2, etc. Troy ___ 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] Resetting Page Numbers
I would like to reset the page number counter after the first (title) page. Currently, I have \setupfooter[state=empty] \setuppagenumbering[location={footer,middle}] \setupfootertexts[Page \currentpage\ of \lastpage] \starttext This is my title page \page \resetnumber[page] This is page 1. \page This is page 2. \stoptext but the second page footer renders as Page 2 of 3 and the third page footer renders as Page 3 of 3. I would like the second page footer to render Page 1 of 2 and the third page footer to render Page 2 of 2. That is, I would like the first (title) page to not be used in the computation of \currentpage or \lastpage. Troy Henderson ___ 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] Section Header and Enumerations
prefixconnector=-, Beautiful. Thank you! Troy ___ 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] Resetting Page Numbers
Thanks again Wolfgang. That works perfectly. Troy ___ 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] Save/Redraw labels as pictures
vardef J = thelabel(textext(J) scaled 2,origin) enddef ; That will work! Troy ___ 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] Save/Redraw labels as pictures
The following code produces the letter J on the first page, but does not draw that same picture on the second page. I would appreciate some advice on how to save and redraw this label in subsequence figures. Thanks, Troy Henderson \starttext \startMPinclusions[+] picture J; \stopMPinclusions \startMPpage J:=thelabel(btex J etex scaled 2,origin); draw J; \stopMPpage \startMPpage draw J; \stopMPpage \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] Save/Redraw labels as pictures
Hans has be playing with MetaPost instances which got broken. Well I am running MKIV included in TeX Live 2012. Troy ___ 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] Header without chapters/sections
I would like to create a header on every page with some fixed text in the header. Simply doing \setupheadertexts[Some text] \setupheader[state=start] Does not produce a header on any page, yet \setupfootertexts[Some text] \setupfooter[state=start] does produce a footer on every page. Why does one work and the other does not? Troy Henderson ___ 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] Header without chapters/sections
Apologies. I had set header=0in with \setuplayout. It works fine. Troy ___ 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] External Figure inside MPpage
\startMPpage draw externalfigure mill scaled 4.75in ; \stopMPpage What if mill is a multi-page PDF and I want to include a particular page? Troy ___ 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] External Figure inside MPpage
draw textext(\externalfigure[mill][page=1]) scaled ... ; Awesome. Thanks. Troy ___ 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] Conditionals
I have a list of numbers, 2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 354, 372, 376 that I would like to use as exceptions in a \dostepwiserecurse loop. That is, within the loop if \recurselevel is NOT EQUAL to either of these numbers, then I want to do something -- otherwise, I simply increment \recurselevel. I would appreciate an example of how to do this. Thanks, Troy Henderson ___ 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 ___