Re: [NTG-context] New user of ConTeXt

2013-04-10 Thread Marco Patzer
On 2013–04–10 Tristan Lorino wrote: > I'm beginning with ConTeXt. You probably compiled your document with texexec. That means you are using an old, but still supported, version of ConTeXt called MkII. You can make you life easier if you use the newer version MkIV instead. Just compile with co

[NTG-context] SVG with \externalfigure and http:// handler

2013-04-11 Thread Marco Patzer
Hi, Including local SVG graphics works, so does including remote PNGs. Remote SVGs are not displayed, however. Example: \starttext \externalfigure[http://www.gnu.org/graphics/gnu2.svg] \stoptext Is this not supported or am I missing a required option? Marco signature.asc Description: Digit

Re: [NTG-context] float combinations

2013-04-13 Thread Marco Patzer
On 2013–04–13 Alan BRASLAU wrote: > A cow is shown in \in{figure} [fig:scenery]a. A cow is shown in \in{figure}{a}[fig:scenery] > The above example raises the following (low priority) feature > suggestion: How about some way of automatically numbering/labeling > combinations just like item lists

Re: [NTG-context] float combinations

2013-04-13 Thread Marco Patzer
On 2013–04–13 Robert Blackstone wrote: > (I tried your liitle code snippet but ConText would not have it.) He's missing a closing bracket on the \externalfigure[mill] line. Here's a complete example: \setupexternalfigures [location=default] \defineitemgroup [subfigure] [lefttext=, stopper=] \s

[NTG-context] Read output of external command

2013-04-14 Thread Marco Patzer
Hi, I need to read the standard output of an external command. This is what I came up with: \starttext \startluacode f = io.popen "ls" context(f:read "*a") \stopluacode \stoptext It works with luajittex, plain lua5.1 and lua5.2, but it fails with a current luatex: ! LuaTeX error [st

Re: [NTG-context] float combinations

2013-04-14 Thread Marco Patzer
On 2013–04–14 Alan BRASLAU wrote: > Two problems, though: > 1. I tried "label=" in \setupcaption to suppress "Figure ". This does not > work, >and looking at the source I do not see how to do this... \setuplabeltext [figureitem=] Marco signature.asc Description: Digital signature ___

Re: [NTG-context] Joinedup itemization with margin

2013-04-15 Thread Marco Patzer
On 2013–04–15 "H. Özoguz" wrote: > \startitemize[joinedup, margin=1em] \startitemize[joinedup][margin=1em] Options and key-value pairs cannot be mixed in ConTeXt. Marco signature.asc Description: Digital signature __

Re: [NTG-context] options of \setupnotation and \setupnote

2013-04-15 Thread Marco Patzer
On 2013–04–15 Tim Li wrote: > Could you tell me what's the options of these two commands that > haven't been updated on the wiki? The file strc-not.mkvi is quite well documented. @Hans: The module documentation fails to build for this module. mtxrun --script modules --process $(mtxrun core-sy

Re: [NTG-context] the difference between \def and \define

2013-04-15 Thread Marco Patzer
On 2013–04–15 Tim Li wrote: > What's the difference between \def and \define? \define is basically the same as \unexpanded\def. It uses a slightly different syntax for specifying optional arguments: \define[3]\foo{First: #1, Second: #2, Third: #3} \unexpanded\def\foo#1#2#3{First: #1, Second:

Re: [NTG-context] the difference between \def and \define

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote: > >I don't think named parameters are possible with \define, but maybe > >I'm mistaken. > > just use suffix .mkvi or put "% macros=mkvi" at the top of your file That's how to enable named parameters for \def. I was talking about \define. The arguments are provided

Re: [NTG-context] options of \setupnotation and \setupnote

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote: > >@Hans: The module documentation fails to build for this module. > > > > mtxrun --script modules --process $(mtxrun core-sys.mkiv) > > mtxrun --script modules --process auto:core-sys.mkiv Thanks, I didn't know that one. > weird ... works here Sorry, copy-pas

Re: [NTG-context] combinations

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote: > As follow up on the combinations tread I made this: > > … > > A relative simple extension but probably useful. How about making the first bracket pair optional if key-value options are passed? This would allow for the following syntax: \starttext %% works: %%

Re: [NTG-context] vskip in lines

2013-04-15 Thread Marco Patzer
On 2013–04–15 "H. Özoguz" wrote: > With \vskip-0.9cm one can relocate 0.9cm. If one uses grid-setting, > it would be easier to give the dimension in lines, like > \vskip-2*line – but this gives an error, how to do that correctly? \vskip-\lineheight Marco signature.asc Description: Digital si

Re: [NTG-context] Zoom to a box when clicking

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote: > >Two observations: > > > > context auto:s-pre-17.mkiv > > > >does not generate the pdf file, because I guess, inputfilename is not > >s-pre-17.mkiv. > > indeed, you can try --global in such cases: > > context --global s-pre-17.mkiv This works on my machine:

[NTG-context] \frac broken in current beta

2013-04-16 Thread Marco Patzer
Hi, \starttext \math{\frac12} \stoptext gives ! LuaTeX error [string "\directlua "]:1: attempt to call field 'math_frac' (a n il value) stack traceback: [string "\directlua "]:1: in main chunk. Marco signature.asc Description: Digital signature _

Re: [NTG-context] the difference between \def and \define

2013-04-16 Thread Marco Patzer
On 2013–04–16 Hans Hagen wrote: > >Marco tries to do something like > > > > \define[3]\Test{#one#two#three} > > > >which doesn’t work. > > hm, ok, do \define is not mkvi then ... too messy to catch that one too No need to bother with that. I was just pointing out the differences between \def a

Re: [NTG-context] the difference between \def and \define

2013-04-16 Thread Marco Patzer
On 2013–04–16 Thomas A. Schmitz wrote: > I'm not lobbying for define to have something similar, I just want > to point out that it would be in the spirit of convergence between > ConTeXt and Lua. It certainly isn't an urgent need, but having > > \define[one,two,three] > > wouldn't be absurd, now

Re: [NTG-context] how to clear the header and footer in some page?

2013-04-16 Thread Marco Patzer
On 2013–04–16 Tim Li wrote: > I have set the header and footer in the setup area, so it will > occur in every page unless clearing them. In some pages, for > example, the page of dedication that the header and footer > shouldn't occur there, how can I clear them in pages like this ? It would

Re: [NTG-context] beta

2013-04-16 Thread Marco Patzer
On 2013–04–16 Hans Hagen wrote: > - frac fixed Thanks. > - fixed more restrictive tex file lookup in run context s-pre-17.mkiv still works on my machine. I'm fine with that, just want to let you know, it might not be the intended behaviour. Marco signature.asc Description: Digital signat

Re: [NTG-context] [***SPAM***] No line break in figure-captions

2013-04-17 Thread Marco Patzer
On 2013–04–16 "H. Özoguz" wrote: > How to prevent line break in figure captions? \setupcaption [figure] [width=\textwidth, align=middle] Marco signature.asc Description: Digital signature ___ If you

Re: [NTG-context] Detecting reference-errors

2013-04-17 Thread Marco Patzer
On 2013–04–17 "H. Özoguz" wrote: > With \at[ref] one can get the pagenumber of a reference. If this > reference is not there (maybe in another file, not included at that > moment) there is no error given, but two question marks ??. > That is of course useful, but what if I WANT an error? Because t

Re: [NTG-context] [***SPAM***] Footnotes indented, but with same distance between text and number

2013-04-17 Thread Marco Patzer
On 2013–04–17 "H. Özoguz" wrote: > How to get the default results with indentation? headalign=left Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please

[NTG-context] LuaTeX error in \showboxes

2013-04-17 Thread Marco Patzer
Hi, the following example results in a LuaTeX error: \showboxes \starttext \dorecurse{30}{\footnote{foo}} \stoptext ! LuaTeX error ...ext-beta/tex/texmf-context/tex/context/base/trac-vis.lua:524: You can't assign a glue_spec node to a prev field stack traceback: [C]: in function '__n

Re: [NTG-context] LuaTeX error in \showboxes

2013-04-17 Thread Marco Patzer
On 2013–04–17 Hans Hagen wrote: > >! LuaTeX error > >...ext-beta/tex/texmf-context/tex/context/base/trac-vis.lua:524: You can't > >assign a glue_spec node to a prev field > > weird error ... a gluespec in a running list (i can intercept it but still) You broke LuajitTeX: context --jit b7r.tex

Re: [NTG-context] footnoterule

2013-04-17 Thread Marco Patzer
On 2013–04–17 Meer, H. van der wrote: > Is there a reason why the first does switches off the rule above the footnote > \setupfootnotes[rule=off] > but this doesn't? > \setupnotation[footnote][rule=off]] It's \setupnotes, not \setupnotation that controls the rule. \setupnotes [footnote]

Re: [NTG-context] Underlay a text with color

2013-04-18 Thread Marco Patzer
On 2013–04–18 "H. Özoguz" wrote: > how to underlay a text (or simply one word) with a (grey) colored > rectangle, just to highlight – like if I had marked it by hand with > a grey marker-pen? \definetextbackground [marker] [background=color, backgroundcolor=yellow, frame=off] \starttex

Re: [NTG-context] [***SPAM***] Underlay a text with color

2013-04-18 Thread Marco Patzer
On 2013–04–18 "H. Özoguz" wrote: > Thanks Marco, but I was not precise enough: I want this underlied > gray in the header for the chapter-marking. The direct attempt below > fails: > > \definetextbackground > [marker] > [background=color, >backgroundcolor=gray, >frame=off] > \setuphea

Re: [NTG-context] gnuplot module broken

2013-04-19 Thread Marco Patzer
On 2013–04–19 Mojca Miklavec wrote: > Dear Hans, > > please consider the following example in MKII: > > \setupcolors[state=start] > > \starttext > > \startMPextensions > a := \abc; > color b; > b := \MPcolor{currentcolor}; > \stopMPextensions > > \startuseMPgraphic{bla} > fill fullcircle scal

Re: [NTG-context] \bTD\numexpr\currentTABLErow\minusone\relax\eTD

2013-04-19 Thread Marco Patzer
On 2013–04–19 Alan BRASLAU wrote: > \bTD\numexpr\currentTABLErow\minusone\relax\dTD \bTD\the\numexpr\currentTABLErow-1\relax\eTD Marco signature.asc Description: Digital signature ___ If your question is o

Re: [NTG-context] use plain LuaTeX in ConTeXt standalone

2013-04-20 Thread Marco Patzer
On 2013–04–20 Tim Li wrote: > Hi, many context users are also luatex user, and the context standalone also > contains luatex binary (windows). I input the 'luatex' in the cmd, but it > can't work. The message is as follows: d:\>luatex > luatex > This is LuaTeX, Version beta-0.77.0-2013041621 (re

Re: [NTG-context] use plain LuaTeX in ConTeXt standalone

2013-04-20 Thread Marco Patzer
On 2013–04–20 Tim Li wrote: > Marco, many thanks. By the way, how can I load the > `luatex-plain.fmt` by default when typing "luatex somefile.tex"? TeX checks for a format which is named the same as the binary. You can create a link: ln -s /path/to/binary/luatex luatex-plain and then call

Re: [NTG-context] use plain LuaTeX in ConTeXt standalone

2013-04-20 Thread Marco Patzer
On 2013–04–20 Hans Hagen wrote: > >1) Create a file “luatex-plain.tex” with the following context: > > > >\input plain > >\directlua {tex.enableprimitives('', tex.extraprimitives())} > >\pdfoutput=1 > >\everyjob \expandafter {% > > \the\everyjob > > \input luatex-basics\relax > > \inpu

Re: [NTG-context] use plain LuaTeX in ConTeXt standalone

2013-04-27 Thread Marco Patzer
On 2013–04–20 Hans Hagen wrote: > On 4/20/2013 12:43 PM, Tim Li wrote: > >Yeah, I found that just now, so I changed "luatex-plain.fmt" to > >"luatex.fmt". I try to move the new "luatex.fmt" to some directory in > >the ConTeXt standalone, but it seems that the kpathsea can't find my > >"luatex.fmt"

Re: [NTG-context] setuppagenumber--start at page xy

2013-04-27 Thread Marco Patzer
On 2013–04–21 Jörg Hagmann wrote: > Has the code for starting pagenumbering at a given number changed? I'm > using last year's template for an annual report, but can't get it to > work. > > Minimal example: > > \setuppagenumber[number=3] \setcounter[userpage][3] Marco signature.asc Descript

Re: [NTG-context] Hyphenation documentation

2013-04-27 Thread Marco Patzer
On 2013–04–20 Sietse Brouwer wrote: > 1. how do I protect a single instance of a word against hyphenation? > Does ConTeXt, like LaTeX, use \hbox{myfragileword}, or something > different? You can enclose it in vertical bars: |thiswordwillnotbehyphenated| However, I'd prefer the new \unhyphenat

[NTG-context] Offset MP text with font change

2013-04-28 Thread Marco Patzer
Hi, why is the second line right-aligned in the following example? \definetextext [foo] [#1]#2{\switchtobodyfont[#1]#2} \starttext \dorecurse{5}{ \startMPcode draw \sometxt[foo][sans]{FooBar}; \stopMPcode \startMPcode draw \sometxt[foo][iwona]{FooBar}; \stopMPco

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Marco Patzer
On 2013–04–28 Wolfgang Schuster wrote: > Am 28.04.2013 um 19:56 schrieb Marco Patzer : > > > Hi, > > > > why is the second line right-aligned in the following example? > > > The first you use the iwona font in your document context has to load the > types

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Marco Patzer
On 2013–04–28 Keith J. Schultz wrote: > can someone explain to me why loading a file/typescript is > producing spaces The typescripts themselves are full of spaces and new lines. And you really want those spaces for readability. TeX usually squashes multiple spaces into one, but spaces still

Re: [NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Marco Patzer
On 2013–05–02 Meer, H. van der wrote: > A call to \switchtobodyfont introduces extra vertical spacing as can be seen > in the example. > Is this intentional or is it something like a % missing somewhere in a macro? Loading the typescript in the setup area should get rid of the space. See http:/

[NTG-context] Different width of marginblocks and margindata

2013-05-03 Thread Marco Patzer
Hi, in the following example, why do marginblocks and margindata produce a different width when both are set to the same value? \setupmarginblocks [width=\rightmarginwidth] \setupmargindata [inright] [style=normal, width=\rightmarginwidth] \showframe \starttext \startmarginblock Tex

Re: [NTG-context] [***SPAM***] heading in margin -> strange extra vertical spaces

2013-05-04 Thread Marco Patzer
On 2013–05–04 Zenlima wrote: > I want to display the lowest heading in the outer margin. But as soon > the simple text becomes a heading, a strange extra line appears on top > of the margin. > > In my minimum example below the first paragraph shows how it should look > like in the pdf-file; the

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Marco Patzer
On 2013–05–06 Meer, H. van der wrote: > What is the simplest way to change the size of fonts in labels drawn in > MetaPost? Probably a font switch directly in the label: label("\small foobar", origin); > \switchtobodyfont[size] can be done in \startMPenvironment and inside each > label. Be

Re: [NTG-context] fontsize drawing in metapost

2013-05-07 Thread Marco Patzer
On 2013–05–07 Meer, H. van der wrote: > Perhaps a better and possibly more elegant way seems the following > route. When I turn Metapost figures into external pdf-files, these > can be placed with \useexternalfigure and the scaled as a whole, > drawing and text alike. My question is: can this be d

Re: [NTG-context] command for a MP graphic

2013-05-07 Thread Marco Patzer
On 2013–05–07 Roland Thiers wrote: > Hi, > I did this code to get a regular polygon with metafun, it works but > I would like to have an user command like \define or \def > to be able to choose the number of sides, n. I don't know how to do > that ... Here's one way to do it: \startuniqueMPgra

Re: [NTG-context] LuaJitTeX, \texenginename, and \texengineversion

2013-05-08 Thread Marco Patzer
On 2013–05–07 Kip Warner wrote: > I find the \texenginename and \texengineversion useful for retrieving > the backend name and version. They work fine when using the vanilla > LuaTeX backend. However, when using LuaJitTeX, the aforementioned > macros still seem to retrieve LuaTeX specific informat

Re: [NTG-context] mpgraphics confusion

2013-05-09 Thread Marco Patzer
On 2013–05–09 Meer, H. van der wrote: > I am a bit confused about the metafum graphis. In the manual (2012) I read > (screen version after page 203 section 3.3) the following. > > \startuseMPgraphic-\useMPgraphic "this graphic is calculated each time it is > placed". > \startreusableMPgraphic-\

[NTG-context] Obtaining the current font

2013-05-09 Thread Marco Patzer
Hi, in the gnuplot module the following macro is used for the TikZ terminal: \def\calculateGNUPLOTcharsize{% \global\GNUPLOThcharsize=1.05\fontcharwd\font`0% \global\GNUPLOTvcharsize=1.05\fontcharht\font`0% \global\advance\GNUPLOTvcharsize by 1.05\fontchardp\font`g% } What are \f

Re: [NTG-context] Obtaining the current font

2013-05-09 Thread Marco Patzer
On 2013–05–10 Mojca Miklavec wrote: > > What are \font`0 and font`g? AFAIK the backtick converts the > > character to the character code, which means it yields \font48 and > > \font103. The goal is to get the current font, right? > > I believe it gives you width/height/depth of character 48/103 i

Re: [NTG-context] Rotating vector graphics.

2013-05-13 Thread Marco Patzer
> In context can I use a pdf graphic but rotate it 90 degrees? \setupexternalfigures [location=default] \starttext \externalfigure [cow] [orientation=90] \stoptext Marco signature.asc Description: Digital signature __

Re: [NTG-context] bold in math-mode

2013-05-20 Thread Marco Patzer
On 2013–05–20 Wim W. Wilhelm wrote: > How can I get boldface characters and symbols (\bf) in mathmode. > I'm using mkiv from TexLive 2012. The following works with the current beta: \starttypescript [palatino] \definetypeface [palatino] [rm] [serif] [palatino] [default] \definetypeface [p

Re: [NTG-context] Percent symbol inside \type{}?

2013-05-20 Thread Marco Patzer
On 2013–05–20 Sander Maijers wrote: > What is the most straightforward way to print a percent symbol > inside the argument to \type{} (or, if necessary, more generally: > monospace type) I'd say the most straightforward way is using \asciimode: \starttext \startlines \mono{foo \% bar}

Re: [NTG-context] Including a large SVG image

2013-06-03 Thread Marco Patzer
On 2013–06–03 Sander Maijers wrote: > I have a few SVG graphics of multiple megabytes. They contain a lot > of objects (text/shapes). All graphics except for one gets properly > included in my ConTeXt document. In place of the failed one there > the gray placeholder box with 'status unknown'. May

[NTG-context] Indentation in floats

2013-06-03 Thread Marco Patzer
Hi, how to disable indentation inside floats without using \noindenting each time? \setupindenting [yes, medium] \starttext \input ward \startplacefigure foo\par bar \stopplacefigure \startplacefigure alpha\par beta \stopplacefigure \startplacefigure \noindenting a manual\par\tex{noind

Re: [NTG-context] Indentation in floats

2013-06-03 Thread Marco Patzer
On 2013–06–03 Wolfgang Schuster wrote: > > how to disable indentation inside floats without using \noindenting > > each time? > > […] > > There is no key for \setupfloat the disable the indentation because floats > are only > a container for other objects, e.g. figures or tables. For text objects

Re: [NTG-context] Centered title with numeration on the same line

2013-06-03 Thread Marco Patzer
On 2013–06–03 honyk wrote: > How can I keep numeration and title together? You can create a custom head alternative. The following code is copied from the source, I only replace the \par with \kern\headnumberdistance. Have a look at strc-ren.mkiv for other layouts. \setuphead [section] [alte

Re: [NTG-context] ToC - right-alignment of roman numerals

2013-06-03 Thread Marco Patzer
On 2013–06–03 honyk wrote: > in fresh MkIV I use the following commands for building ToC, but I have no > idea how to align the label (roman numeral) to the right. \setuphead[chapter][conversion=Romannumerals] \setupheadnumber[chapter][48] \setupcombinedlist [content] [alternative=c] \setup

Re: [NTG-context] \at and \in woes with \startcomponent….\stopcomponent

2013-06-04 Thread Marco Patzer
On 2013–06–04 Hans Hagen wrote: > On 6/4/2013 2:06 PM, Alan Bowen wrote: > >In my component files, the tools for cross-references work except for > >\at and \in. These commands produce links that display properly but go > >to a null page, i.e., nowhere. > > it's more an side effect of duplicate f

Re: [NTG-context] Pagenumbering

2013-06-05 Thread Marco Patzer
On 2013–06–05 Tim Steenvoorden wrote: > I doing something wrong is this a bug? > > \starttext > \setupcounter[userpage][10] \setcounter [userpage] [10] Marco signature.asc Description: Digital signature ___ If y

Re: [NTG-context] Side-by-side framed text blocks

2013-06-06 Thread Marco Patzer
On 2013–06–06 honyk wrote: > I'd like to type two blocks of text with different 'align' settings side by > side. Here's one way to do it: \setupframed [offset=1ex, width=8cm, frame=off] \starttext \placesidebyside {\startframed[align={normal,left}] \input knuth\par\stopframed}

Re: [NTG-context] Side-by-side framed text blocks

2013-06-06 Thread Marco Patzer
On 2013–06–07 honyk wrote: > thanks for this. I removed that framed=off option and it turned out to be > sligthly different from what I'd like to achieve. > > My goal is to have two blocks with a vertical gap between them and to have > these blocks framed (or with the colored background) at th

Re: [NTG-context] Including a large SVG image

2013-06-10 Thread Marco Patzer
On 2013–06–10 Sander Maijers wrote: > Is anybody still interested to look into this issue? > I need the graph for my thesis, which is due soon. It works here. \starttext \externalfigure [scatterplot_of_WER_vs_PPL] [width=\textwidth] \stoptext context version: 2013.06.07 12:25 Inkscape

[NTG-context] Some issues with \unit

2013-06-11 Thread Marco Patzer
Hi, most of these issues already have been discussed last year¹, but they don't seem to be solved, yet. 1) \unit{10^3} does display as 10✕10³. This is confusing and wrong. 2) Expressions like \unit{e3} result in ✕10³ instead of 10³. The multiplication sign should be dropped in this case. 3)

[NTG-context] Wrong markings

2013-07-07 Thread Marco Patzer
Hi, in the following example the markings are wrong. \setupheadertexts [{\getmarking[section][both]}] [{\getmarking[section][first]\space\emdash\space \getmarking[section][last]}] \starttext \def\aa#1{\section{#1}\input knuth} \processcommacommand [A, B, C, D, E] \aa \stoptext I expe

Re: [NTG-context] Wrong markings

2013-07-08 Thread Marco Patzer
On 2013–07–08 Hans Hagen wrote: > >I expect the markings on the left and right to be the same and show > >A–C on the first page and D–E on the second one. Looks like a bug to > >me. > > use top and bottom This works. Thanks. > -- previous : last before sync > -- next : first after sync > >

[NTG-context] First and last section of current chapter

2013-07-08 Thread Marco Patzer
Hi, how to display the first and last section name at the beginning of each chapter? I'm a little clueless which mechanism to use. A local table of contents displays all sections. Marks maybe? Although I have no idea how to achieve that with marks. Sure, I could manually reference the sections an

Re: [NTG-context] underbraces slightly too narrow (with MkIV 2013.05.28)

2013-07-10 Thread Marco Patzer
On 2013–07–10 Sanjoy Mahajan wrote: > In certain cases, display-mathunderbraces are not quite wide enough. > Here's a minimal example: > > === > \starttext > > \placeformula\startformula > \underbrace{15\,\tf cm}_{L} > \stopformula > > \stoptext > === \starttext

[NTG-context] Overlays as background in textbackground

2013-07-14 Thread Marco Patzer
Hi, overlays are not displayed when used as a background for textbackground. Is this a bug or are overlays not supported? \defineoverlay [myoverlay] [\ssd Foo] \definetextbackground [mybackgroundColour] [background=color, backgroundcolor=gray] \definetextbackground [mybackgroundOverlay] [backg

Re: [NTG-context] Overlays as background in textbackground

2013-07-14 Thread Marco Patzer
On 2013–07–14 Wolfgang Schuster wrote: > Overlays are a framed feature (the page background is a frame too) > and textbackgrounds are images which are drawn on the page like > overlays. MetaPost graphics can be hooked into the textbackground using the mp and method keys. So apparently there is a

Re: [NTG-context] Overlays as background in textbackground

2013-07-15 Thread Marco Patzer
On 2013–07–15 Hans Hagen wrote: > On 7/14/2013 8:54 PM, Marco Patzer wrote: > >Hi, > > > >overlays are not displayed when used as a background for > >textbackground. Is this a bug or are overlays not supported? > > in principle we can make it pluggable (given tha

Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Marco Patzer
On 2013–07–15 "H. Özoguz" wrote: > \setupheader[text][after=\hrule] \setupheader[text][after=\blue\hrule] Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, pl

Re: [NTG-context] Colored horizontal line

2013-07-15 Thread Marco Patzer
On 2013–07–15 "H. Özoguz" wrote: > \color[r=0.4,g=0.4,b=0.4]{\hrule} fails. This syntax is wrong. You want \colored[r=0.4,g=0.4,b=0.4], \color expects a previously defined colour. Marco signature.asc Description: Digital signature ___

Re: [NTG-context] PDF-Toc text is wrong for new \start… commands

2013-07-16 Thread Marco Patzer
On 2013–07–16 Steffen Kram wrote: > A similar problem occurs, when using references: It might be a parser issue. ConTeXt uses different parsers for different commands. Most commands happily accept values without trailing comma. The commands using a different parser require a trailing comma. I rec

Re: [NTG-context] INstalling the context version of TeX distro.

2013-07-17 Thread Marco Patzer
On 2013–07–17 john Culleton wrote: > I downloaded the zip file and unzipped it. Now what? Unzip it and run first-setup.bat If you don't mind about a few MiB of space, run first-setup.bat --modules=all --fonts=all > Again I need install directions. If there is an up-to-date guide to > thi

Re: [NTG-context] bug with beta 2013.07.12 19:10

2013-07-17 Thread Marco Patzer
On 2013–07–17 Steffen Kram wrote: > Or is there a way to use the first_setup script with your server? Get the latest code from Hans http://pragma-ade.com/context/beta/cont-tmf.zip and replace the directory tex/texmf-context with its contents. Then regenerate the formats context --generate

Re: [NTG-context] A very simple macro that does not work...

2013-07-18 Thread Marco Patzer
On 2013–07–18 Alan Bowen wrote: > Should the definition not be > \define[1]\anios{{\tfx \inmagin{#1}}} > ……\inmargin….? \inmagin would do the job with Knuth's new iTeX¹ system² but it's not yet available in ConTeXt, which still uses legacy TeX. In the near future it's unlikely that iTeX

Re: [NTG-context] Linecorrection and distances

2013-07-18 Thread Marco Patzer
On 2013–07–18 "H. Özoguz" wrote: > And to which testsuite do you refer to? Probably http://pragma-ade.com/context/latest/cont-tst.7z > I could not find any options, parameters, for "startlinecorrection grep -Hnr startlinecorrection * cld/cld-001.cld:28: context.startlinecorrection( { "b

Re: [NTG-context] [***SPAM***] Joining two paragraphs

2013-07-22 Thread Marco Patzer
On 2013–07–22 "H. Özoguz" wrote: > how to join to paragraphs /lines, such that they are not broken on to pages? > > \starttext > \dorecurse{30}{First line.\\ Second line.\\} \dorecurse{30}{First line.\blank[samepage] Second line.\\} Marco signature.asc Description: Digital signature _

Re: [NTG-context] About Hyphenation

2013-07-23 Thread Marco Patzer
On 2013–07–23 Andres Conrado Montoya wrote: > \setupalign[verytolerant,stretch,lesshyphenation,hz,hanging] From my experience, stretch often leads to rather terrible spacing. I avoid it if wherever I can. > 1. Is there any definitive way of avoiding […] hyphens at the end of a page? The penalty

Re: [NTG-context] footnotes on wrong page

2013-07-24 Thread Marco Patzer
On 2013–07–24 Alan BRASLAU wrote: > From what I understand, footnotes can be handled using different > mechanisms, and this is why it gets confusing for users. http://wiki.contextgarden.net/Unexpected_behavior#Footnotes:_The_Difference_between_.5Csetupnotation_and_.5Csetupnote Marco signature.

Re: [NTG-context] About Hyphenation

2013-07-24 Thread Marco Patzer
On 2013–07–24 Wolfgang Schuster wrote: > How about a example for us! \starttext %% \brokenpenalty1\relax \setpenalties\brokenpenalties{1}{1} \dorecurse{4}{\input knuth} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore m

Re: [NTG-context] About Hyphenation

2013-07-24 Thread Marco Patzer
On 2013–07–24 Wolfgang Schuster wrote: > > Apparently \brokenpenalty is not supposed to be used with > > \setpenalties, see spac-ver.mkiv : > > > >\setpenalties\widowpenalties\plustwo\maxdimen > >\setpenalties\clubpenalties \plustwo\maxdimen > > \brokenpenalty \max

Re: [NTG-context] [***SPAM***] Section without numbering

2013-07-25 Thread Marco Patzer
On 2013–07–25 "H. Özoguz" wrote: > Thanks Wolfgang, but that does not work here. My minexample: > > \setupcombinedlist > [content] > [alternative=b, > list={chapter, section, subject list={chapter, section, subject, Marco signature.asc Description: Digital signature __

Re: [NTG-context] Opening quotes problem with context.

2013-07-27 Thread Marco Patzer
On 2013–07–27 john Culleton wrote: > I think I will encapsulate the "\quotation" method in a macro like > \def\qq{\\quotation\{} > or similar. Two keystrokes are better than nine. I'd suggest to use the auto complete feature of your editor. When reading the source after six months “\qq” makes yo

Re: [NTG-context] Using backslash in chapter title.

2013-07-28 Thread Marco Patzer
On 2013–07–28 john Culleton wrote: > \chapter{Can You type \backslash bye?} > > The slash appears but a bit low and much too thin. Use \textbackslash. Marco signature.asc Description: Digital signature ___ If your

Re: [NTG-context] wrong \setupinteraction[focus=standard]?

2013-07-31 Thread Marco Patzer
On 2013–07–31 Pablo Rodríguez wrote: > I’m trying to get internal links to footnotes without having the focus > changed. > > […] > > Is this a bug? Yes, it's a known issue since quite a while. Hans confirmed it on 2013-03-28: This is a long term one ... I'm not going to mess with footnotes etc

[NTG-context] new beta luatex error

2013-07-31 Thread Marco Patzer
\starttext foo \stoptext ! LuaTeX error [string "\directlua "]:1: attempt to call field 'resetprevdepth' (a nil value) stack traceback: [string "\directlua "]:1: in main chunk. Marco signature.asc Description: Digital signature __

Re: [NTG-context] Math accents set too close to capital

2013-07-31 Thread Marco Patzer
On 2013–07–31 Sietse Brouwer wrote: > Tangential to your issue, but nota bene: instead of $...$ for inline > math, ConTeXt lets you use \math{...} or \m{...}. Indeed. And when you use \asciimode, you have no other choice (and that's a good thing): \asciimode \starttext My #1 is $5 \

Re: [NTG-context] Path problems w/ MkIV on Arch Linux

2013-07-31 Thread Marco Patzer
On 2013–07–31 Matt Gushee wrote: > Once again I'm returning to ConTeXt after a long absence [maybe if I > just kept using it I wouldn't have these problems?]. I'm trying to get > started with MkIV; I don't feel a strong need to have the very latest > code, so unless there are serious bugs, I want

Re: [NTG-context] new beta luatex error

2013-07-31 Thread Marco Patzer
On 2013–07–31 Hans Hagen wrote: > On 7/31/2013 10:56 PM, Marco Patzer wrote: > >\starttext > >foo > >\stoptext > > > >! LuaTeX error [string "\directlua "]:1: attempt to call field > >'resetprevdepth' (a nil value) > >stack tra

Re: [NTG-context] bug in \externalfigure

2013-08-01 Thread Marco Patzer
On 2013–08–01 Jannik Voges wrote: > I found a bug in the current ConTeXt Beta with externalfigure. The following > minimal example will show you what happens > > > \starttext > > \externalfigure[cow] > > \externalfigure[cow][width=10cm] > > \page > > \externalfigure[test] This reads in the

Re: [NTG-context] bug in \externalfigure

2013-08-01 Thread Marco Patzer
On 2013–08–01 Aditya Mahajan wrote: > I think that the advice of omitting the file extension given in most > LaTeX introductions is more trouble than it is worth in ConTeXt. > Omitting file extensions is important if you are generating both dvi > and pdf outputs. In ConTeXt, one never uses the DVI

Re: [NTG-context] copy&paste from pdf bug (smallcaps, text figures)

2013-08-01 Thread Marco Patzer
On 2013–08–01 Philipp Gesang wrote: > copy&paste from PDF is broken: > > \setupbodyfont [iwona] > \starttext > \feature[+][just-os,smallcaps] 0123456789 abcdefghijklmnopqrstuvwxyz > \stoptext > > Result:  > Expected: 0123456789abcdefghijklmnopqrstu

Re: [NTG-context] copy&paste from pdf bug (smallcaps, text figures)

2013-08-01 Thread Marco Patzer
On 2013–08–01 Philipp Gesang wrote: > · > > > I tested your example: no problem here on Mac OS X 10.8.4, with > > either TeXShop, Adobe Redaer or Preview, with the latest beta > > (ConTeXt ver: 2013.08.01 01:31 MKIV beta fmt: 2013.8.1 int: > > english/english). > > x64 linux here, but

Re: [NTG-context] copy&paste from pdf bug (smallcaps, text figures)

2013-08-02 Thread Marco Patzer
On 2013–08–02 Philipp Gesang wrote: > https://phi-gamma.net/pdf/copypasta.pdf > https://phi-gamma.net/files/copypasta.txt > > I definitely get   from this > one. Indeed. When I copy from your file I get those private Unicode slots. When I run the exa

Re: [NTG-context] Updating modules with a ppa:reviczky/context-daily installation

2013-08-03 Thread Marco Patzer
On 2013–08–03 Michael Ash wrote: > I would like to bump my question back into the queue. Thank you for your > consideration. > > I would also like to add: where can I put files that I would like context > to "see". For example if I have a file "env_letter.tex" which I include > with \environmen

Re: [NTG-context] How to update context modules; thank you, write-up, and a couple of questions

2013-08-04 Thread Marco Patzer
On 2013–08–04 Michael Ash wrote: > (1) Is it possible to tell which version of a module is installed, > i.e., that I am using the 2013.07.31 version of letter? (The version > of context appears in the log file but not the version of the module.) Often modules contain a line like \writestatus

Re: [NTG-context] Placefigure inner/outer

2013-08-04 Thread Marco Patzer
On 2013–08–04 Tim Steenvoorden wrote: > \starttext > \input knuth > \placefigure[left]{}{\externalfigure[figurename]} > \input knuth > \placefigure[inner]{}{\externalfigure[figurename]} What do you want to do? Place it in the margin? \placefigure[inleft]{}{\externalfigure[figurename]} Marco

Re: [NTG-context] Locating pdf files in the texmf directory structure

2013-08-05 Thread Marco Patzer
On 2013–08–04 Michael Ash wrote: > But env_letter.tex calls two pdf files with \externalfigure (see > below). These two pdf files are also in the directory pointed to by > TEXMFHOME but they show up in the finished document as gray "state: > unknown" boxes This works here. \setupexternalfigur

[NTG-context] \completepublications in component creates wrong hyperlinks

2013-08-05 Thread Marco Patzer
Hi, if a \completepublications call is used in a component, the hyperlink, which is supposed to link to the bibliography, instead links to a (probably non-existing) pdf file named after the component. \startbuffer [sample] @BOOK{Eijkhout1991, title = {\TeX\ by Topic. A \TeX nician's Ref

Re: [NTG-context] Hiding \part completely except for in the ToC

2013-08-06 Thread Marco Patzer
On 2013–08–06 Alexander van Ratingen wrote: > I'm having a little problem and I'm hoping you can help. For my table of > contents, I need to group my sections, but I don't want any heads for this > in the text. Now, I've been using \part for this but unfortunately I cannot > get rid of the empty s

<    1   2   3   4   5   6   7   8   >