Re: [NTG-context] starting a chapter on odd page

2016-05-11 Thread Marco Patzer
On Wed, 11 May 2016 13:19:41 +0200 Andrea Valle wrote: > Thanks marco, should I rather use > > > \definepagebreak > [chapterpagebreak] > [yes, odd] I don't know what the actual difference is. According to the source it has something to do with floats. Marco _

Re: [NTG-context] starting a chapter on odd page

2016-05-11 Thread Marco Patzer
On Wed, 11 May 2016 12:38:17 +0200 Andrea Valle wrote: > in the book I’m finishing I’m using a structure like this > > \starttext > > \input c_preface.tex > > \input c_chapter1.tex > > [etc] > > \stoptext > > > where each .tex file contains > > \startchapter[various options] > \section{Fi

Re: [NTG-context] headline and no indent

2016-05-09 Thread Marco Patzer
On Mon, 9 May 2016 17:19:15 +0200 Andrea Valle wrote: > When opting for paragraph indents, paragraphs following directly > after a headline should no show the indent. > > I guess that the first line of chapter/section/subsection should have > no indent. Hmm, how to get this? That's actually th

[NTG-context] listalternative and filler throws error

2016-05-05 Thread Marco Patzer
Hi, the following used to work with 2014.02.14 17:07 but a current 2016.05.01 09:52 throws the error: Use of \syst_helpers_set_local_hsize_yes doesn't match its definition \definefiller [myfiller] \setupcombinedlist [content] [alternative=c] \setuplistalternative [c] [filler={\filler[myfiller]

Re: [NTG-context] Assigning a variable to the list argument in \setupsection

2016-04-14 Thread Marco Patzer
On Thu, 14 Apr 2016 09:46:34 +0200 Michael Guravage wrote: > I would like to use a variable for the value of the list argument in, > e.g., the \startsection command. If you compile my little example you > will see that the first 'literal' assignment works, while the second > 'variable' assignment

Re: [NTG-context] help on def & buffer

2016-03-30 Thread Marco Patzer
On Wed, 30 Mar 2016 10:34:46 +0200 Erik Margraf wrote: > My plan is simply to use the output of a sagemath run in this way. A > run should produce > several files containing TeX code. I only wanted to shorten the > \startbuffer \input ... \stopbuffer > sequence. Maybe this (including sagemath out

Re: [NTG-context] Expansion in PDF metadata

2016-03-04 Thread Marco Patzer
On Fri, 4 Mar 2016 10:34:49 +0100 Hans Hagen wrote: > On 3/4/2016 7:58 AM, Marco Patzer wrote: > > Hi! > > > > How to expand \translate so that it doesn't show up in the PDF > > metadata? Example: > > > > \setupdocument [metadata:title=\doc

[NTG-context] Expansion in PDF metadata

2016-03-03 Thread Marco Patzer
Hi! How to expand \translate so that it doesn't show up in the PDF metadata? Example: \setupdocument [metadata:title=\documentvariable{title}] \mainlanguage [sv] \startdocument [title={\translate[en=Foo, sv=Bar]}] \input knuth \stopdocument This literally shows: Title: \translate [en=Foo,

Re: [NTG-context] Vertically centered text in each page

2016-02-19 Thread Marco Patzer
On Fri, 19 Feb 2016 12:51:14 +0100 Nicola wrote: > On 2016-02-19 11:23:18 +0000, Marco Patzer said: > > > On Fri, 19 Feb 2016 11:54:12 +0100 > > Nicola wrote: > > > >> How do I setup the slide command to do that by default? I have > >> tried puttin

Re: [NTG-context] Vertically centered text in each page

2016-02-19 Thread Marco Patzer
On Fri, 19 Feb 2016 11:54:12 +0100 Nicola wrote: > How do I setup the slide command to do that by default? I have tried > putting {before,after,beforesection,aftersection}=\vfill in various > combinations in \setuphead, but I cannot obtain the desired effect. \setuphead[slide][ style=\ssb, c

Re: [NTG-context] Buffer with syntax highlighting

2016-02-17 Thread Marco Patzer
On Wed, 17 Feb 2016 13:16:03 +0100 Procházka Lukáš Ing. wrote: > is it possible to \typebuffer with a syntax highlighting? \typebuffer [demo] [option=context] Also have a look at Aditya's vim syntax highlighter module which is great. Marco __

Re: [NTG-context] Deprecated $…$ for inline math?

2016-02-16 Thread Marco Patzer
On Tue, 16 Feb 2016 08:21:42 -0700 Alan BRASLAU wrote: > I do note that the VIM syntax highlighting routine is pretty poor and > has difficulties around $, which is a symbol that I like using > (unpaired) quite a lot in MetaPost (\startMPcode...\stopMPcode). The stock vim context syntax highligh

Re: [NTG-context] Deprecated $…$ for inline math?

2016-02-16 Thread Marco Patzer
On Tue, 16 Feb 2016 09:22:23 +0100 Nicola wrote: > I read in the wiki (http://wiki.contextgarden.net/Math) that $…$ > for inline math is deprecated in favor of \m{…} and more verbose > variants. Is that really the case? If so, what is the reason and > what are the differences? When \asciimode is

Re: [NTG-context] Character rotation font feature available?

2016-02-14 Thread Marco Patzer
On Mon, 15 Feb 2016 04:42:31 +0800 Zhichu Chen wrote: > I have some special needs that requires all the characters be rotated > by 90 degrees. I've searched around the web and maybe adding > /FontMatrix [0 1 -1 0 0 0] > to the font descriptor dictionary is helpful. But I can't find a > \pdf??? pr

Re: [NTG-context] horizontal list of sections/topics?

2016-02-14 Thread Marco Patzer
On Fri, 12 Feb 2016 23:36:47 +0100 "Thomas A. Schmitz" wrote: > for my next presentation style, I would like to have a list of > topics with the current topic highlighted. There are already two > styles in simpleslides doing this, but this time, I'd like the > list to be horizontal, at the bottom

Re: [NTG-context] anglestriped shifts path

2016-02-04 Thread Marco Patzer
On Wed, 3 Feb 2016 15:27:36 -0500 John Kitzmiller wrote: > I expect anglestriped to work more like fill, but it shifts the path. > Is it intended behavior? > > \startMPpage[offset=2mm] > path p; > p = unitsquare scaled 4cm ; p = fullsquare scaled 4cm ; Marco ___

Re: [NTG-context] Shading to transparent using withshademethod

2016-01-28 Thread Marco Patzer
On Thu, 28 Jan 2016 18:26:28 +0100 Hans Hagen wrote: > On 1/28/2016 3:34 PM, Marco Patzer wrote: > > On Thu, 28 Jan 2016 14:45:13 +0100 > > Hans Hagen wrote: > > > >> On 1/28/2016 1:53 PM, Marco Patzer wrote: > >>> On Thu, 28 Jan 2

Re: [NTG-context] Shading to transparent using withshademethod

2016-01-28 Thread Marco Patzer
On Thu, 28 Jan 2016 14:45:13 +0100 Hans Hagen wrote: > On 1/28/2016 1:53 PM, Marco Patzer wrote: > > On Thu, 28 Jan 2016 12:33:39 +0100 > > Hans Hagen wrote: > > > >>>>> How to make transparent shadings work with the new mechanism? > &

Re: [NTG-context] Shading to transparent using withshademethod

2016-01-28 Thread Marco Patzer
On Thu, 28 Jan 2016 12:29:46 +0100 Hans Hagen wrote: > >> How to make transparent shadings work with the new mechanism? > > > >withtransparency (1,.5) > > next beta > > \definecolor [trans] [a=multiply, t=.5, g=.5] > > \startMPpage > fill fullcircle scaled 12cm withcolor \MPco

Re: [NTG-context] Shading to transparent using withshademethod

2016-01-28 Thread Marco Patzer
On Thu, 28 Jan 2016 12:33:39 +0100 Hans Hagen wrote: > >>> How to make transparent shadings work with the new mechanism? > >> > >> withtransparency (1,.5) > > > > However, this makes the entire shade transparent. How to shade from > > one colour to transparent using withtransparency t

Re: [NTG-context] Distance between items

2016-01-28 Thread Marco Patzer
On Thu, 28 Jan 2016 11:48:12 +0100 Otared Kavian wrote: > I don’t remember how to tweak the distance between items: What I > would like to have is a distance between items a little bit bigger > than the distance between them when the option « packed » is given, > but smaller than the distance bet

Re: [NTG-context] Shading to transparent using withshademethod

2016-01-28 Thread Marco Patzer
On Thu, 28 Jan 2016 09:43:24 +0100 Hans Hagen wrote: > On 1/27/2016 10:05 PM, Marco Patzer wrote: > > The new code appears to work in general, but only if no shading to > > transparent is being used: > > > > \definecolor [trans] [a=multiply, t=.5, s=.5] > &g

[NTG-context] Shading to transparent using withshademethod

2016-01-27 Thread Marco Patzer
Hi, some months ago the withshading, withfromshadecolor etc. have apparently been replaced by the more general withshademethod, withshadevector, withshadecolors, etc. methods. I have issues converting the old withshading code to the withshademethod version. The old code had no problems shading to

Re: [NTG-context] invert colors in \externalfigure

2016-01-20 Thread Marco Patzer
> How can I invert the colors in the external figure without having > to edit the image file? Based on Peter Münster's grph-downsample.lua here some lines that should get you started. Note that you'll need graphicsmagick (or imagemagick for that matter. In the latter case change the call from `gm

Re: [NTG-context] \doiftext vs. \doifemtpy

2016-01-13 Thread Marco Patzer
On Wed, 13 Jan 2016 23:18:03 +0100 Pablo Rodriguez wrote: > which is the difference between \doiftext and \doifempty? First of all, the logic is reversed, \doiftext prints the second argument if the first one contains text, \doifempty does print the second argument if the first one *does not* co

Re: [NTG-context] Race Condition: Incorrect float numbering

2014-02-18 Thread Marco Patzer
On 2014–02–18 Andreas Schneider wrote: > after many experiments I finally was able to extract a (kinda) minimal example > that reproduces a problem which is haunting one of my documents. > > Under certain conditions (apparently a bunch of floats and page breaks) it > happens, that a float is re-p

Re: [NTG-context] Problem with integral sign

2014-02-09 Thread Marco Patzer
On 2014–02–09 Jaroslav Hajtmar wrote: > How can type big integral sign to result looked good? > > Here is my example: > > \startformula > \int \frac{P_n(x)}{Q_m(x)} \, \mathrm{d}x, \quad n \stopformula I don't know how to reduce the space between the integral sign and the fraction (I assume tha

Re: [NTG-context] Project structure

2014-02-06 Thread Marco Patzer
On 2014–02–05 pol stra wrote: > The problem is that only text of first introduction is used. You can use \allinputpaths to see what's going on. The paths are indeed added and ConTeXt walks through the list and uses a matching file, if found. This happens to always be the file of the first chapter

Re: [NTG-context] footnotes in appendices

2014-01-19 Thread Marco Patzer
On 2014–01–19 Pablo Rodriguez wrote: > on a document I have, I want to have footnotes in appendices, but they > are numbered in uppercase Roman numbers. Here is a sample: > > \starttext > \startappendices > a\footnote{b.} > \stopappendices > \stoptext > > How can I change it to Arabic numbers?

Re: [NTG-context] hyphenating \ConTeXt

2014-01-17 Thread Marco Patzer
On 2014–01–17 Pablo Rodriguez wrote: > On 01/15/2014 11:56 PM, Marco Patzer wrote: > > On 2014–01–15 Pablo Rodriguez wrote: > > > >> how should I invoke \hyphenation so it hyphens the \ConTeXt command? > > > > \ConTeXt is defined as “Con\TeX t” and \TeX use

Re: [NTG-context] No bibliography in the output, depends on file name

2014-01-17 Thread Marco Patzer
On 2014–01–15 Nicola wrote: > maybe this is a known issue, It's a known fact that context has a different notion of valid file names than your operating system does. This is by design. To quote the manual: “It is highly recommended, that all input files, i.e. the ConTEXt source and other inc

Re: [NTG-context] Compiling to EPUB

2014-01-16 Thread Marco Patzer
On 2014–01–16 Henning Hraban Ramm wrote: > 7zip is not called as „zip“, but „7zip“, On my (Unix) machine it's called as “7z” not “7zip”. I don't know if the binary name differs between the platforms. > but ConTeXt’s script relies on an executable „zip“ and probably exactly the > syntax of InfoZ

Re: [NTG-context] hyphenating \ConTeXt

2014-01-15 Thread Marco Patzer
On 2014–01–15 Pablo Rodriguez wrote: > how should I invoke \hyphenation so it hyphens the \ConTeXt command? \ConTeXt is defined as “Con\TeX t” and \TeX uses kerns and boxes, both of which suppress hyphenation. AFAIK there's no easy way around it. That having said you can surely redefine the \TeX

Re: [NTG-context] Disable balancing of page bottoms

2014-01-15 Thread Marco Patzer
On 2014–01–15 Joshua Krämer wrote: > Thank you, Marco. The problem with your solution is that in > doublesided mode, after \startmakeup ... \stopmakeup, an empty page is > inserted, but I need to have text on the back of the page. Do you > maybe know how to solve this? \definemakeup [Titl

Re: [NTG-context] Disable balancing of page bottoms

2014-01-15 Thread Marco Patzer
On 2014–01–15 Joshua Krämer wrote: > I have found out that I had interpreted the problem wrongly. It is > not a problem of balancing, it is a problem of the layout macros. It's not a problem with the macros, it's a consequence of you using them the wrong way. > I use a different page layout for

Re: [NTG-context] apply typing environment to \typebuffer

2014-01-14 Thread Marco Patzer
On 2014–01–14 Pablo Rodriguez wrote: > I have a presentation that defines a typing environment and I would like > to know who to apply it to \typebuffer. > > Here is a sample: > > \definetyping[TeXcode][option=TEX] Use: \setuptyping [buffer] [option=TEX] This applies globally, thoug

Re: [NTG-context] Multipage xtables starts at the wrong page

2014-01-10 Thread Marco Patzer
On 2014–01–10 Marco Pallante wrote: > It seems my TL2013 installation is missing LuajitTeX. Do you know what > package has it? You're right, TeXLive apparently doesn't ship LuajitTeX. I don't use TeXLive myself, but have an installation for testing. Having set up the PATH for TeXLive "context " i

Re: [NTG-context] \setcharactercasing misbehaviour

2014-01-09 Thread Marco Patzer
On 2014–01–09 Hans Hagen wrote: > On 1/9/2014 12:56 PM, Marco Patzer wrote: > >Hi, > > > >\setcharactercasing requires a new paragraph to work. Seems like a > >bug to me. > > > >\starttext > > \setcharactercasing[Word]foo %% Uppercase >

Re: [NTG-context] Multipage xtables starts at the wrong page

2014-01-09 Thread Marco Patzer
On 2014–01–09 Marco Pallante wrote: > How do I use LuajitTeX? context --jit > I've seen the two options --jit and --jiton > which seem to be the right way. Am I right? context --help | grep jit --jituse luajittex with jit turned off (only use the faster virtual machine) --jiton us

Re: [NTG-context] Multipage xtables starts at the wrong page

2014-01-09 Thread Marco Patzer
On 2014–01–09 Marco Pallante wrote: Hello Marco, I have no clue where the issue is, but I can confirm that the table starts on page two using version 2013.05.28. It works with a current beta. If want to keep using TeXLive, instead of ConTeXt standalone, one possible workaround would be to use Lu

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-09 Thread Marco Patzer
On 2014–01–09 Jean-Guillaume wrote: > \starttext > \definehead[Exercise][subsection] > \setuphead > [Exercise] > [after=] > \startExercise[]{(this is the exercise's title)} > The exercise's content. > \stopExercise > \stoptext \definehead [Exercise] [subsection] [after=] \starttex

Re: [NTG-context] Multipage xtables starts at the wrong page

2014-01-09 Thread Marco Patzer
On 2014–01–07 Marco Pallante wrote: > […] > > What I get, however, is a table that starts at page 2 and not just after > the chapter head. The table starts on page one here. Which version are you using? Marco signature.asc Description: Digital signature ___

[NTG-context] Language “deo” causes “TeX capacity exceeded” when units are used

2014-01-09 Thread Marco Patzer
Hi, the following example exceeds TeX's capacity: \mainlanguage [deo] \starttext \unit{10 square metre} \stoptext Marco signature.asc Description: Digital signature ___ If your question is of interest to others a

[NTG-context] \setcharactercasing misbehaviour

2014-01-09 Thread Marco Patzer
Hi, \setcharactercasing requires a new paragraph to work. Seems like a bug to me. \starttext \setcharactercasing[Word]foo %% Uppercase \setcharactercasing[Word]bar %% lowercase \setcharactercasing[Word]bar %% Uppercase \stoptext Marco signature.asc Description: Digital signature

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-09 Thread Marco Patzer
On 2014–01–09 Jean-Guillaume wrote: > In the subsection head, I would like to suppress the newline between the > number and the text, That's controlled by the “after” key. \setuphead [Exercise] [after=] > My purpose is to define something like: > > \definehead[Exercise][subsection] > \s

Re: [NTG-context] Calling \followtokens from with in metapost

2013-10-14 Thread Marco Patzer
On 2013–10–14 Marco Patzer wrote: > On 2013–10–13 Hans Hagen wrote: > > > >inbetween the arcs, that should alsó be drawn). The text should not be > > >stretched but center on the top, flowing evenly distributed on each > > >side. This link will

Re: [NTG-context] Broken nightly (2013.10.04)

2013-10-13 Thread Marco Patzer
On 2013–10–13 Kip Warner wrote: > I've noticed a problem typesetting my book using ConTeXt nightly version > 2013.10.04. The following code... > > \placeformula[formula:Limit of Verhulst equation] > \startformula > \lim_{t\to\infty} P(t) = K. > \stopformula > > .

Re: [NTG-context] XML export and font switches

2013-10-13 Thread Marco Patzer
On 2013–10–13 Hans Hagen wrote: > On 10/13/2013 12:42 AM, Marco Patzer wrote: > >Hi, > > > >certain font switches fail when XML export is used. Example: > > > >\setupbackend [export=foo.xml] > > > >\definehighlight > > [emph] > > [styl

Re: [NTG-context] Calling \followtokens from with in metapost

2013-10-13 Thread Marco Patzer
On 2013–10–13 Hans Hagen wrote: > >inbetween the arcs, that should alsó be drawn). The text should not be > >stretched but center on the top, flowing evenly distributed on each > >side. This link will give you an idea: > > > >http://www.heilsuefling.is/heilsuefling/upload/images/whp_in_general/det

Re: [NTG-context] bug or needs warning documentation

2013-10-13 Thread Marco Patzer
On 2013–10–13 Hans Hagen wrote: > On 10/13/2013 2:48 AM, Marco Patzer wrote: > > >\unprotect > > > >\def\pack_combinations_pickup > > {\dostarttagged\t!combinationpair\empty > >\dostarttagged\t!combinationcontent\empty > >\dogotopar\pack_comb

Re: [NTG-context] bug or needs warning documentation

2013-10-12 Thread Marco Patzer
On 2013–10–12 d.henman wrote: > I found what I consider a bug in startcombination processing. > > […] > > The below fails > \starttext > \placefigure > [here,none] > [fig: reference tag] > {citation text} > { \startcombination[1*2] >{\externalfigure[test-im

[NTG-context] XML export and font switches

2013-10-12 Thread Marco Patzer
Hi, certain font switches fail when XML export is used. Example: \setupbackend [export=foo.xml] \definehighlight [emph] [style=\ita] %% \bfa works \starttext \ita Foobar%% works Foo \emph{Bar} %% fails \stoptext LuaTeX error [string "\directlua "]:1: invalid escape sequence near '"

Re: [NTG-context] graphictext bug?

2013-10-12 Thread Marco Patzer
On 2013–10–12 Thangalin wrote: > The log does not contain any error messages. See attached. I didn't test it, but I vaguely have in mind that pstoedit errors do not end up in the log file, only on the console. Marco signature.asc Description: Digital signature _

Re: [NTG-context] Code Called Twice?

2013-10-11 Thread Marco Patzer
On 2013–10–10 Thangalin wrote: > I noticed something unexpected with the following code: > > \enabletrackers[metapost.showlog] > > \startuseMPgraphic{heading:ThemeTitleStyle} > show "HEADING:THEMETITLESTYLE"; > show \MPstring{heading:title}; > > draw textext( \MPstring{heading:title} ) ro

Re: [NTG-context] graphictext bug?

2013-10-11 Thread Marco Patzer
On 2013–10–10 Thangalin wrote: > Hi, > > From the October 8, 2010 context mkiv MetaFun manual (section 8.6), > the following example does not produce any output beyond the caption: http://wiki.contextgarden.net/ConTeXt_Standalone#Dependencies Do you have pstoedit installed? Marco signature.a

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote: > ! Undefined control sequence. > > system > tex > error on line 28 in file > /home/xan/fems/proves-context/prova.tex: Undefined control sequence ... > > 18 \starttikzpicture > 19 [decoration={ > 20markings, > 21mark= > 22

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote: > Minimal example: > > % Regime > \enableregime[utf] Not required if you use MkIV > does not work. It works here with 2013.10.09 10:36 using MkIV and MkII. At least I don't get an error and a PDF with a few green blots is created. What's the error message you get for t

[NTG-context] Setting colour in \processisolatedwords sometimes fails

2013-10-10 Thread Marco Patzer
Hi, setting the colour in \processisolatedwords doesn't always work. \defineframed [myframe] [foregroundstyle=italic, foregroundcolor=blue] \def\mycmd{\blue} \starttext %% frame works \myframe{foo bar} %% colour works \processisolatedwords{foo bar}\mycmd %% style is applied,

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote: > with this code: > > > % Paràbola amb Focus = (0,0.25) i Directriu (x,-0.25) > \placefigure[here] > [taula:construcció-paràbola-1] > {Paràbola amb directriu $r$ i focus $F$} > {\framed[frame=off]{ > \starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={ > marki

Re: [NTG-context] Spelling out chapter numbers for novels.

2013-10-09 Thread Marco Patzer
On 2013–10–09 john Culleton wrote: > Very interesting. I have one further problem. The accepted style is to > use an initial cap as in > Twenty-three > and not > twenty-three > > Is there a cure for that also? Words Marco signature.asc Description: Digital signature

Re: [NTG-context] Spelling out chapter numbers for novels.

2013-10-09 Thread Marco Patzer
On 2013–10–09 john Culleton wrote: > It is now fashionable in the U.S. (and maybe elsewhere) to use a > spelled-out chapter number in novels. > > […] > > I wonder if there is a function in Context or elsewhere that does this > for me? \setuplabeltext [chapter=Chapter\nobreakspace] \setuphead

Re: [NTG-context] [***SPAM***] Page layout mechanics

2013-10-09 Thread Marco Patzer
On 2013–10–09 hwit...@gmail.com wrote: > I want a 3 mm border/edge and the rest of the space available for text space. \definepapersize [business-card] [width=91mm, height=55mm] \setuppapersize [business-card] \setuplayout [backspace=3mm, topspace=3mm, margin=0mm, header=0mm

Re: [NTG-context] startitemize [intext]

2013-10-09 Thread Marco Patzer
On 2013–10–09 Alan BRASLAU wrote: > I would expect the following minimal example to produce > a. first b. second c. third > > \starttext > \startitemize [a,intext] \startitemize [a,text] Marco signature.asc Description: Digital signature __

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–09 Stéphanie Vilayphiou wrote: > Ah ok, I tried it in Context live first and it didn't output a PDF, ConTeXt live runs 2012.05.30 11:26. However, the hyphenation macros were redone in beta 2013.03.04 18:28 and macros such as \sethyphenationvariables were replaced by \lang_basics

Re: [NTG-context] Conditional float references

2013-10-08 Thread Marco Patzer
On 2013–09–22 Marco Patzer wrote: > a couple of times the question came up¹²³ how to create more > intelligent referencing. There are already mechanisms in the core, > namely \somewhere and \atpage but they both have drawbacks. > \somewhere happily prints its text if the figure is p

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–08 Stéphanie Vilayphiou wrote: > I'd like to try a minimal example of your second email, Hans, but I > can't figure out how to use those functions? > Can you make another minimal example so that I can understand better > how this works? It's sufficient to copy-paste the code into your

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–08 Hans Hagen wrote: > On 10/8/2013 7:35 PM, Marco Patzer wrote: > >On 2013–10–08 Hans Hagen wrote: > > > >>>\hyphenateurl{} works only when setupalign[] is set to hyphenated. > >>> > >>>Is there a way to hyphenate only URLs?

Re: [NTG-context] hyphenate urls in a non hyphenated text

2013-10-08 Thread Marco Patzer
On 2013–10–08 Hans Hagen wrote: > >\hyphenateurl{} works only when setupalign[] is set to hyphenated. > > > >Is there a way to hyphenate only URLs? > > You need to provide a few more options to \setupalign: Why? > \appendtoks\tttf\to\everyhyphenatedurl % maybe we need a proper setup Isn't that

Re: [NTG-context] Mathematics (\lim, \int, ...)

2013-10-08 Thread Marco Patzer
On 2013–10–08 Alan BRASLAU wrote: > Is something gone funny with mathematics? http://thread.gmane.org/gmane.comp.tex.context/84607/focus=84616 It was a bug which has been fixed in the current beta. Marco signature.asc Description: Digital signature

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Marco Patzer
On 2013–10–08 Marco Patzer wrote: > On 2013–10–08 Procházka Lukáš Ing. - Pontex s. r. o. wrote: > > > I'm trying to hook commands.stoptext()... > > There is already a hook for that. No need to tinker with Lua. > > \setupexternalfigures > [location=default

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Marco Patzer
On 2013–10–08 Procházka Lukáš Ing. - Pontex s. r. o. wrote: > I'm trying to hook commands.stoptext()... There is already a hook for that. No need to tinker with Lua. \setupexternalfigures [location=default] \setupdocument [after=\setups{document:after}] \startsetups [document:after] \sta

Re: [NTG-context] Breaks in TOC

2013-10-07 Thread Marco Patzer
On 2013–10–07 "H. Özoguz" wrote: > How to get only a normal break \crlf Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] Integral subscript leads to “Undefined control sequence”

2013-10-07 Thread Marco Patzer
On 2013–10–07 luigi scarso wrote: > I think a space is needed as in > $\int _a^b f(x) dx$ Well, that might be a workaround. But it's still a bug. %% works \math{\int^b_a} whereas %% fails \math{\int_a^b} Furthermore, it used to work for ages using \int_x or \int_{xyz}. Marco signat

[NTG-context] Integral subscript leads to “Undefined control sequence”

2013-10-07 Thread Marco Patzer
Hi, the current beta doesn't like integral subscripts any more: \starttext \math{\int_a} \stoptext Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please

Re: [NTG-context] TEXpage produces wrong bounding box with rotated images

2013-10-07 Thread Marco Patzer
On 2013–10–07 Hans Hagen wrote: > On 10/6/2013 9:15 PM, Marco Patzer wrote: > >Hi, > > > >when rotation is used, the TEXpage bounding box is incorrect. Angles > >multiples of 90° are correct, however. It looks like a bug. Example: > > > >\setupexternalf

[NTG-context] TEXpage produces wrong bounding box with rotated images

2013-10-06 Thread Marco Patzer
Hi, when rotation is used, the TEXpage bounding box is incorrect. Angles multiples of 90° are correct, however. It looks like a bug. Example: \setupexternalfigures [location=default] \starttext \startTEXpage \externalfigure [hacker] [orientation=44] \stopTEXpage \startTEXpage \exter

Re: [NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Marco Patzer
On 2013–10–01 Hans Hagen wrote: > in mkiv the overhead is less than in mpii as we don't parse the blob > in the same way and the mpiv code is also more optimized so we can > consider dropping the SetPageState macro. I see you decided to drop LoadPageState. It's about 20ms overhead per 1000 graphi

Re: [NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Marco Patzer
On 2013–10–01 Marco Patzer wrote: > Hi, > > I wonder if it's necessary to manually load the MetaPost variables > using LoadPageState. Some of them are static and do not require an > update on each page, e.g. NOfPages, but many of them might change on > each page, e.g

[NTG-context] Automatically loading the page state, LoadPageState

2013-10-01 Thread Marco Patzer
Hi, I wonder if it's necessary to manually load the MetaPost variables using LoadPageState. Some of them are static and do not require an update on each page, e.g. NOfPages, but many of them might change on each page, e.g. OnOddPage, PageNumber, TextWidth. Forgetting to use LoadPageState easily re

Re: [NTG-context] Wrong spacing using stretch effect

2013-10-01 Thread Marco Patzer
On 2013–10–01 Philipp Gesang wrote: > When using the characterkerning method you can exempt ligatures > and character pairs from being letterspaced by defining the > functions typesetters.kerns.keepligature () and > typesetters.kerns.keeptogether (, ), > respectively. If the function returns a tru

Re: [NTG-context] Wrong spacing using stretch effect

2013-10-01 Thread Marco Patzer
On 2013–09–30 Hans Hagen wrote: > these are unrelated mechanisms where the first one just does some > pdf magic ... no feedback to tex about widths (ok, i could write > something better but never had and still don't have a reason for > that kind of low level pdf based approach to be really deeply

Re: [NTG-context] Feedback wanted on a ConTeXt tutorial

2013-09-29 Thread Marco Patzer
On 2013–09–29 Mari Voipio wrote: > Inspired by some informal discussions at the recent ConTeXt meeting I > started to write a *really* basic ConTeXt tutorial. I'm happy to see someone willing to invest time and effort to improve the documentation! I did neither attend the meeting, nor take part i

[NTG-context] Module documentation broken

2013-09-27 Thread Marco Patzer
Hi, the module documentation is broken when it contains certain macros, e.g. \METAPOST. mtxrun --script modules --process auto:meta-pag.mkiv yields pages > flushing realpage 1, userpage 1 pages > flushing realpage 2, userpage 1 error: .../context/tex/texmf-context/tex/cont

Re: [NTG-context] ConTeXt Manual Errata

2013-09-27 Thread Marco Patzer
On 2013–09–26 Peter Münster wrote: > On Thu, Sep 26 2013, Aditya Mahajan wrote: > > > Wouldn't it be better to move the manuals to github rather than keeping them > > on an svn server? > > Why? In my opinion, for the “3 commits per year” it doesn't really matter which version control system is

Re: [NTG-context] ConTeXt Manual Errata

2013-09-26 Thread Marco Patzer
On 2013–09–26 Aditya Mahajan wrote: > Wouldn't it be better to move the manuals to github rather than > keeping them on an svn server? +1 Marco signature.asc Description: Digital signature ___ If your question is o

Re: [NTG-context] ConTeXt Manual Errata

2013-09-26 Thread Marco Patzer
On 2013–09–26 Thangalin wrote: > I registered an account, but have not seen any confirmation. Supelec has problems with the mail system at the moment. So Taco doesn't get a notification if someone requests commit access. I cc'd him, so he should get notified that way. In case you still don't get

Re: [NTG-context] ConTeXt Manual Errata

2013-09-26 Thread Marco Patzer
On 2013–09–21 Marco Patzer wrote: > > I did not have the ConTeXt manual source code on hand, so I could > > not directly modify it. > > http://wiki.contextgarden.net/Improving_the_manuals > > Do not count on someone else to fix it. Create an account and fix > what

Re: [NTG-context] Questions about "natural tables"

2013-09-26 Thread Marco Patzer
On 2013–09–26 MANUEL GONZALEZ SUAREZ wrote: > My questions are: how do the tables are centered on the page? Horizontal centring is automatically applied when you make it float. > Can you change the size of the tables? The width keyword sets the width of the cells. There's also option=stretch. I

Re: [NTG-context] Conditional float references

2013-09-25 Thread Marco Patzer
On 2013–09–25 Otared Kavian wrote: > Also after applying your patch everything works as expected. I > tested your file with some maths formulas and changed even the > language to French with: > > \unprotect > \setuplabeltext > [\s!fr] > [\v!atpage=page\nobreakspace, %% “at page” sounds weird

[NTG-context] Wrong spacing using stretch effect

2013-09-25 Thread Marco Patzer
Hi, the stretch effect does not take the final width of the string into account. Is this a bug or a limitation? Example: \starttext (\effect[stretch]{fftabc})\par %% “c” collides with “)” (\kerncharacters[.05]fftabc)%% no collision \stoptext Marco signature.asc Description: Digital si

Re: [NTG-context] Conditional float references

2013-09-25 Thread Marco Patzer
On 2013–09–25 Otared Kavian wrote: > I have not yet tried it with references to maths formulas, > theorems, lemmas and such, Me neither. \ifsinglesided \strc_references_do_relative_else\plusone {\def\strc_references_smart_string{\labeltext\v!nextpage}} {\strc_references_do_rela

Re: [NTG-context] Conditional float references

2013-09-24 Thread Marco Patzer
On 2013–09–24 Robert Blackstone wrote: > I reproduce the error message here, hoping that you, or somebody > elsm, can see what I did wrong. I used mkvi style macros. Either place the following into the first line %% macros=mkvi or change the file extension to mkvi. Marco signature.asc Des

Re: [NTG-context] Conditional float references

2013-09-23 Thread Marco Patzer
On 2013–09–23 Hans Hagen wrote: > >a couple of times the question came up¹²³ how to create more > >intelligent referencing. There are already mechanisms in the core, > >namely \somewhere and \atpage but they both have drawbacks. > >\somewhere happily prints its text if the figure is placed on the

[NTG-context] Conditional float references

2013-09-22 Thread Marco Patzer
Hi, a couple of times the question came up¹²³ how to create more intelligent referencing. There are already mechanisms in the core, namely \somewhere and \atpage but they both have drawbacks. \somewhere happily prints its text if the figure is placed on the same double page. In fact, no text at al

Re: [NTG-context] ConTeXt Manual Errata

2013-09-21 Thread Marco Patzer
On 2013–09–18 Thangalin wrote: Hi Dave, > During a recent plane ride, I started to read the ConTeXt manual > to get a better understanding: > http://www.ctex.org/documents/context/cont-enp.pdf A more recent manual can be found at http://pmrb.free.fr/contextref.pdf > If anyone has plans to re

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Marco Patzer
On 2013–09–21 Xan wrote: > > On 2013–09–21 Xan wrote: > > > > > \diameter produces a diameter symbol. What is the equivalent in ConTeXt? > > > > ⌀ or \varnothing > > > Really varnothing is not the same as diameter (see the reference of LaTeX I > posted before) \def\diameter{\char"2300}

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Marco Patzer
On 2013–09–21 Xan wrote: > \diameter produces a diameter symbol. What is the equivalent in ConTeXt? ⌀ or \varnothing Have a look at char-def.lua for a list of context names for various glyphs. It might make sense to enable the fonts.missing tracker. Then ConTeXt warns you that a particular gly

[NTG-context] Missing { inserted using placefigure and postponing

2013-09-21 Thread Marco Patzer
Hi, I get a “Missing { inserted.” error under certain circumstances. Here is an example: \starttext \blackrule [height=8cm] \startpostponing \placefigure [] {foo}{bar} \stoppostponing \blackrule [height=15cm] \startlines a b \stoplines \stoptext I used black rules to

[NTG-context] Firstline mechanism broken

2013-09-21 Thread Marco Patzer
Hi, the firstline mechanism seems to be broken. \definefirstline [foo] [alternative=line, color=lightgray] \starttext \setfirstline [foo] \input knuth \par \stoptext Marco signature.asc Description: Digital signature ___

Re: [NTG-context] Defining multiple enumerations fails

2013-09-20 Thread Marco Patzer
On 2013–09–20 Hans Hagen wrote: > On 9/20/2013 12:33 AM, Marco Patzer wrote: > >Hi, > > > >defining multiple enumerations at the same time used to work. Is > >this syntax not supported any longer or is it a bug? > > > >\defineenumeration [foo, bar] > >

<    1   2   3   4   5   6   7   8   >