Re: [NTG-context] Migrating from LaTeX (was: A not so short introduction to ConTeXt Mark IV)

2021-01-04 Thread Henning Hraban Ramm
> LaTeX yes it is > but it shouldn't be a barrier to learning ConTeXt which IME it is. The barrier is in your head. Don’t assume ConTeXt is like LaTeX, but be amazed if it does. ;) > To take but one example: when wearing my linguist hat I deal with obscure > scripts and languages,

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
gt; a écrit : Hi, I have been using xpart and ypart to extract these values from pairs of points in a path but I wasn't getting the correct result. I was expecting: pair (2cm, 11cm) to give xpart 2 and ypart 11 However I was getting: pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
e xpart 2 and ypart 11 However I was getting: pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 After much head scratching and reading the MetaPost and MetaFun manuals, I realised that the units of xpart or ypart are in Postcript points or Big Points (bp), and 1 bp is 1/72 of an inch, and

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Fabrice L
the correct result. I was expecting: >>> >>> pair (2cm, 11cm) to give xpart 2 and ypart 11 >>> >>> However I was getting: >>> >>> pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 >>> >>> After much head scratching

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Hans Hagen
of points in a path but I wasn't getting the correct result. I was expecting: pair (2cm, 11cm) to give xpart 2 and ypart 11 However I was getting: pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 After much head scratching and reading the MetaPost and MetaFun manuals, I realised that the un

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
result. I was expecting: pair (2cm, 11cm) to give xpart 2 and ypart 11 However I was getting: pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 After much head scratching and reading the MetaPost and MetaFun manuals, I realised that the units of xpart or ypart are in Postcript points or Bi

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Hans Hagen
art 56.6929 and ypart 311.8096 After much head scratching and reading the MetaPost and MetaFun manuals, I realised that the units of xpart or ypart are in Postcript points or Big Points (bp), and 1 bp is 1/72 of an inch, and thus to get the values of xpart or ypart in cm I would have to

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Fabrice L
ypart 11 > > However I was getting: > > pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 > > After much head scratching and reading the MetaPost and MetaFun manuals, I > realised that the units of xpart or ypart are in Postcript points or Big > Points (bp), and 1 bp is 1

[NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
Hi, I have been using xpart and ypart to extract these values from pairs of points in a path but I wasn't getting the correct result. I was expecting: pair (2cm, 11cm) to give xpart 2 and ypart 11 However I was getting: pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 After much h

Re: [NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Marco Patzer
On Thu, 19 Nov 2020 16:53:52 +0100 Pablo Rodriguez wrote: > On 11/19/20 11:55 AM, Marco Patzer wrote: > > Hi! > > [...] > > What's the reason the section head stays on the previous page when > > the “after” is used and how to fix this? > > Hi Marco, > >

Re: [NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Pablo Rodriguez
On 11/19/20 11:55 AM, Marco Patzer wrote: > Hi! > [...] > What's the reason the section head stays on the previous page when > the “after” is used and how to fix this? Hi Marco, by default (according to strc-def.mkiv), \section has "after=\blank". In some cases, I ha

[NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Marco Patzer
Hi! In the following example the 2nd section head stays on page one when the “after” key is used. If the blackrule is commented out the section head moves to page two as intended. What's the reason the section head stays on the previous page when the “after” is used and how to fix

Re: [NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-15 Thread Willi Egger
Hi Garulfo! Now! — You managed do do a nice job! :-) Willi > On 15 Nov 2020, at 19:53, Garulfo wrote: > > Hi, > > finally I made some progress and uploaded files to the wiki in "Reports and > articles" Samples section (https://wiki.contextgarden.net/Sample_documents) > > Initial PDF

Re: [NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-15 Thread Pablo Rodriguez
On 11/15/20 7:53 PM, Garulfo wrote: > [...] > Initial PDF document: > https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf > [...] > ConTeXt output : >

Re: [NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-15 Thread Garulfo
Hi, finally I made some progress and uploaded files to the wiki in "Reports and articles" Samples section (https://wiki.contextgarden.net/Sample_documents) Initial PDF document: >

Re: [NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Sylvain Hubert
; prefix=no, > align={flushleft,nothyphenated}, > way=bytext] > \setupcaption[table][location=top] > > \setupthinrules[width=15em] % width of horizontal rules > > \setupxtable[frame=off,option=stretch,bodyfont=small,foregroundstyle=

[NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Andres Conrado Montoya
,foregroundstyle=sans] \setupxtable[head][topframe=on,bottomframe=on,foregroundstyle=sansbold] \setupxtable[body][bottomframe=on] \setupxtable[foot][bottomframe=on] \define[1]\fuentent{\start\switchtobodyfont[sans,small]#1\par\stop} \define[1]\fuente{\start\switchtobodyfont[sans,small]\emph{Fuente:}~#1

[NTG-context] How to reproduce a particular head/title style (reformat)

2020-11-03 Thread Garulfo
Hi, I would like to learn "how to ConTeXt" complex titles styles like the one seen in the following document: - https://wiki.contextgarden.net/images/f/f1/Screenshot_20201103_220818.png - source document:

[NTG-context] How to reproduce a particular head/title style

2020-11-03 Thread Garulfo
Hi, I would like to learn "how to ConTeXt" complex titles styles like the one seen in the following document: https://wiki.contextgarden.net/images/f/f1/Screenshot_20201103_220818.png original document:

[NTG-context] A syntax sugar for ConTeXt

2020-11-02 Thread Sylvain Hubert
an example in Context an excursion <http://www.pragma-ade.com/general/manuals/ma-cb-en.pdf> using xtable sugared with the new syntax: ``` \xtable.setup[ split='yes', header='repeat', offset='4pt', ] \xtable[ head={ align='middle', foregroundstyle='bold',

Re: [NTG-context] no frontmatter head on recto page

2020-09-30 Thread jbf
Taco, I found a solution. Instead of trying to adjust what I have in the preamble, I simply went to where I begin the Foreword and included [marking={Foreword}]: \startforeword[marking={Foreword}][author={Author's name}]. And of course, to prevent the first page of Foreword from having the

Re: [NTG-context] no frontmatter head on recto page

2020-09-30 Thread jbf
No, Taco, that is not resolving the problem. I added your suggestion (header=start) to what I already had for \setuphead for 'foreword': \setuphead   [foreword]   [frontpartlabel=foreword,    conversion=empty,    header=start] but it makes no difference. I am already aware that chapter, on

Re: [NTG-context] no frontmatter head on recto page

2020-09-30 Thread Alan Bowen
My apologies for the mixed message. A. On Wed, Sep 30, 2020 at 8:56 AM Alan Bowen wrote: > Thank you, Taco, for the fix *and* the helpful explanation. > > The file now works (and I can now put this project to bed!) > > Alan > > On Wed, Sep 30, 2020 at 7:44 AM Taco Hoekwater wrote: > >> >> >>

Re: [NTG-context] no frontmatter head on recto page

2020-09-30 Thread Alan Bowen
Thank you, Taco, for the fix *and* the helpful explanation. The file now works (and I can now put this project to bed!) Alan On Wed, Sep 30, 2020 at 7:44 AM Taco Hoekwater wrote: > > > > On 30 Sep 2020, at 11:46, jbf wrote: > > > > For some reason that I cannot work out, the recto page

Re: [NTG-context] no frontmatter head on recto page

2020-09-30 Thread Taco Hoekwater
> On 30 Sep 2020, at 11:46, jbf wrote: > > For some reason that I cannot work out, the recto page header is not > appearing in frontmatter sections like Foreword. It is important to note that > for this item I am using: > > \definehead > [foreword] [chapter]… ‘chapter' suppresses the

[NTG-context] no frontmatter head on recto page

2020-09-30 Thread jbf
the problem, neither worked: 1. In \setuphead I thought perhaps I might need to add placehead=yes, but that did nothing. 2. I also tried  [{\hfill\getmarking[chapter, foreword]\hfill}][] in case I needed to add in 'foreword', having defined it as a head. That did nothing either. Any clues as to what

[NTG-context] How to get the last item from an XML node

2020-09-21 Thread Denis Maier
in the \startxtablefoot ...\stopxtablefoot, i.e., I need one command for the last element, and one for the rest (Or is there a better way?). What would be the everything but the last? What am I missing? Thanks again, Denis == \setupxtable[frame=off,split=yes] \setupxtable[head][topframe

Re: [NTG-context] styling individual parts of ToC entry

2020-09-09 Thread jbf
needing to be arranged a bit differently, which is why I haven't got my head around what I need to do. They are: (1) Foreword    author name (2) Chapter no.   Title   author name (3) Chapter no.   Title 1     Title 2 or subtitle

[NTG-context] short filler rule either side of a text

2020-08-24 Thread jbf
I know it is possible to get a rule to act as a filler either side of, say, a chapter head text by using \definefiller with alternative=rule and, as explained in an earlier post <https://tex.stackexchange.com/questions/497352/context-heading-text-surrounded-by-lines/497389#497389>,

Re: [NTG-context] memoir-style chapter heading

2020-08-17 Thread jbf
or right alignment with this simple approach. I have read the 'Details' approach you have indicated, though am still to get my head around it. Understanding overlays is one thing. Understanding layers yet another. Julian On 17/8/20 4:54 pm, Aditya Mahajan wrote: On Mon, 17 Aug 2020, jbf

Re: [NTG-context] About vertical typesetting in ConTeXt

2020-08-04 Thread Jairo A. del Rio
e{fontspec} \setmainfont{Mongolian White}[Renderer=Harfbuzz,Script=Mongolian] \begin{luacode*} -- How do I do this in ConTeXt? userdata = userdata or {} userdata.mongolian = function(head) --Ugly hackish line rotation rot = node.new(node.id("whatsit"),node.subtype("pdf_literal")) ro

Re: [NTG-context] white-space after section-head in columns

2020-07-15 Thread Lukas/ConTeXt
Od: Peter Münster Komu: ConTeXt users Datum: 15. 7. 2020 14:57:26 Předmět: [NTG-context] white-space after section-head in columns Hi, What is the right way please to get normal white-space after a section in columns, i.e. not too much? Example, that shows the problem: --8<--

Re: [NTG-context] white-space after section-head in columns

2020-07-15 Thread Wolfgang Schuster
Peter Münster schrieb am 15.07.2020 um 14:55: Hi, What is the right way please to get normal white-space after a section in columns, i.e. not too much? Example, that shows the problem: --8<---cut here---start->8--- \starttext \startsection[title=Space is ok

[NTG-context] white-space after section-head in columns

2020-07-15 Thread Peter Münster
Hi, What is the right way please to get normal white-space after a section in columns, i.e. not too much? Example, that shows the problem: --8<---cut here---start->8--- \starttext \startsection[title=Space is ok here] \input tufte \stopsection

Re: [NTG-context] spacing before items

2020-06-24 Thread Henning Hraban Ramm
ML/CSS. But I’m quite sure if you figured it out on your own, you know how to do it next time. Or if you forget, you can look for your own solution (I recur to my old environments all the time). May I ask what kind of job requires you to learn ConTeXt? That’s rare. > Off the top of my head,

Re: [NTG-context] spacing before items

2020-06-24 Thread Mike Cooper
/layout that would have taken 5-10 minutes in Word or HTML/CSS. > > > > People have been very helpful and patient with me!! Thanks to all of you > > for > that! > > Let me challenge you: how would your solution translate to a wiki page > for a beginner with the sam epro

Re: [NTG-context] reduced space below chapter title

2020-06-02 Thread Wolfgang Schuster
as well as maintaining the style of the standard chapter head. You can add a check for odd/even chapter numbers and use only a single command. \startsetups[chapter:after]   \ifodd\namedheadnumber{chapter}     \blank[4cm]   \else     \blank[1cm]   \fi \stopsetups \setuphead   [chapter

Re: [NTG-context] reduced space below chapter title

2020-06-02 Thread jbf
of the standard chapter head. Julian On 3/6/20 12:58 am, Wolfgang Schuster wrote: jbf schrieb am 02.06.2020 um 11:41: Hi list, I am attempting to achieve, for every second chapter, to have only one line of space between the chapter title and the text that follows. I looked at the following

Re: [NTG-context] how to interrupt doublesided in particular instance

2020-05-06 Thread jbf
___ You may want the new /mychapter/ head to appear in the TOC and pdf bookmarks as well, so take a look at /\setupcombinedlist/ and /\placebookmarks/. -- Rik ___ If your

Re: [NTG-context] how to interrupt doublesided in particular instance

2020-05-06 Thread Rik Kabel
\chapter{Right page} \chapter{Right page} \mychapter{New page} \chapter{Right page} \stoptext Wolfgang ___ You may want the new /mychapter/ head to appear in the TOC and pdf bookmarks as well, so take a look

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-05 Thread Wolfgang Schuster
\setupheadertexts[\directsetup{header}] \startbuffer[tablerow] \startxrow \startxcell first \stopxcell \startxcell second \stopxcell \stopxrow \stopbuffer \startbuffer[table] \startxtable \startxtablehead[head] \getbuffer[tablerow] \stopxt

Re: [NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
split}] \setupxtable[ option=stretch,split=repeat,header=repeat,align=middle] \setupxtable[head][background=color,backgroundcolor=gray,foregroundcolor=red] \starttext Some lines of text. This text must come just before the table, but only on the first page of the table \def\onerow{ \startxrow \s

[NTG-context] splitted xtable with repeating headers and placetable

2020-04-04 Thread Geert Dobbels
align=middle, frame=off] {\tfx \crlf Annex T.2.3. \crlf \tfx Date of issue: \crlf \currentdate \crlf page \pagenumber of \lastpage} } }] %\setupfloat[table][default={force,split}] \setupxtable[offset=0cm, frame=off, bottomframe=on, framecolor=gray, option=stretch, split=yes, header=repeat,

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
ll[left] \cC \stopxcell >> \startxcell[left] \cD \stopxcell >> \startxcell \cE \stopxcell >> \startxcell[left] \cF \stopxcell >> \startxcell \cG \stopxcell >> \startxcell \cH \stopxcell >> \doifdefined{cI}{\startxcell \cI \stopxcell} >> \doifdefined{cJ}

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
gt; data. I cannot guess why a second loop might be required. > Hi Geert, > > this approach is simpler: > > \starttext > \startxtable > \startxtablehead[head] > \doloopif{\lineno}{<}{2}{\getbuffer[loop]} > \stopxtablehead > \start

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Pablo Rodriguez
simpler: \starttext \startxtable \startxtablehead[head] \doloopif{\lineno}{<}{2}{\getbuffer[loop]} \stopxtablehead \startxtablebody \doloopif{\lineno}{>}{1}{\getbuffer[loop]} \stopxtablebody \stopxtable \stoptext Only loop header with CSV lines numbered below 2

Re: [NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Wolfgang Schuster
, option=stretch, align=middle] \setupxtable[head][background=color, backgroundcolor=gray, topframe=on, bottomframe=on, framecolor=black, foregroundcolor=blue] \setupxtable[left][align=right] \startxtable[header=repeat] Add "split=repeat" to \startxtable. \startxtablehead[h

[NTG-context] xtable headers and handlecsv loop

2020-04-03 Thread Geert Dobbels
cH \stopxcell \doifdefined{cI}{\startxcell \cI \stopxcell} \doifdefined{cJ}{\startxcell \cJ \stopxcell} \doifdefined{cK}{\startxcell [left] \cK \stopxcell} \stopxrow \stopbuffer \setupxtable[offset=0cm, frame=off, bottomframe=on, framecolor=gray, option=stretch, align=middle] \setu

Re: [NTG-context] \placenamedfloat and \setuphead[aftersection=...] broken?

2020-04-03 Thread Benjamin Buchmuller
Thank you, Wolfgang, this works; apparently, the chapter has to be set with \startchapter … \stopchapter and footnotes after \chapter won’t be flushed unless \startchapter \footnote{something} \stopchapter. This makes sense to me. I guess, internally \head (e.g. \section, \chapter etc

Re: [NTG-context] Repeat backgrounds on slides

2020-02-13 Thread Wolfgang Schuster
bg:hs2020-mond] > [x=0mm, y=0mm] > {\externalfigure[background.jpg][height=\paperwidth]} > > Ususally I call the background after a head command like \starttitle or when I > create slides like this > > \startslide[title={foobar}] > \setupbackgrounds[page][background=

[NTG-context] Repeat backgrounds on slides

2020-02-13 Thread juh
call the background after a head command like \starttitle or when I create slides like this \startslide[title={foobar}] \setupbackgrounds[page][background=bg:hs2020-mond] ... \stopslide The problem is that I cannot call the background on another slide. It seems as if the layer is gone after

Re: [NTG-context] Unicode 13 – save the \dodo!

2020-02-05 Thread Henning Hraban Ramm
things indeed ... kind of iconic esperanto so maybe som grammar > will come too Good idea. There are a lot of emojis that I can’t imagine using or that I don’t understand, esp. facial expressions, even if I know western comic and manga representations of feelings. And I often miss emojis for

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
pter[reference={cha:blah},   list={blah}, % toc   marking={blah},  % page heading   bookmark={blah}, % pdf bookmark   title={blah}]    % chapter head [Lettrine=yes,setFirst=5W] ... \stopchapter \startcha

Re: [NTG-context] Tent style cards

2019-12-22 Thread Hans Hagen
alternatives, this is the closest I have come up with. But mirroring doesn't work.  If I use \setuparranging[2*4] mirroring works, but I only need tent style (1*2 head-to-head) so that I can trim to size. Any template that could be suggested would be most helpful as the wedding is on Mon (yikes!). Simple

Re: [NTG-context] Tent style cards

2019-12-22 Thread Wolfgang Schuster
with. But mirroring doesn't work. If I use \setuparranging[2*4] mirroring works, but I only need tent style (1*2 head-to-head) so that I can trim to size. Any template that could be suggested would be most helpful as the wedding is on Mon (yikes!). Simple solution: \starttexdefinition TableCard #1

Re: [NTG-context] Tent style cards

2019-12-22 Thread Wolfgang Schuster
with. But mirroring doesn't work. If I use \setuparranging[2*4] mirroring works, but I only need tent style (1*2 head-to-head) so that I can trim to size. Any template that could be suggested would be most helpful as the wedding is on Mon (yikes!). There is a arrangement style but it's meant for doublesided

Re: [NTG-context] Tent style cards

2019-12-21 Thread Pablo Rodriguez
losest I have come up with. > But mirroring doesn't work. If I use \setuparranging[2*4] mirroring > works, but I only need tent style (1*2 head-to-head) so that I can trim > to size. > > Any template that could be suggested would be most helpful as the > wedding is on Mon (yikes!).

[NTG-context] Tent style cards

2019-12-21 Thread Pavneet Arora
\setuparranging[2*4] mirroring works, but I only need tent style (1*2 head-to-head) so that I can trim to size. Any template that could be suggested would be most helpful as the wedding is on Mon (yikes!). advTHANKSance. >>>MWE<<< \definepapersize[tblcard][width=4in,height=3in] \setu

Re: [NTG-context] math align broken

2019-12-16 Thread Jeong Dal
version 2.03.3, ConTeXt ver: 2019.12.12, format: 2019.12.14 % \starttext \startitemize \head inline formula: $1001 \times 23 \equiv 1 \quad \pmod {3837}$ \head display mode \startformula 1001 \times 23 \equiv 1 \quad \pmod {3837} \stopformula \head

Re: [NTG-context] changing alignment inside a paragraph

2019-12-12 Thread mf
, actions = function() local head = tex.lists.page_head -- list dimensions returns 3 value but we take the first context(head and getdimensions(getlist(find_tail(tonut(tex.lists.page_head or 0) end } I think that's because page_head is reset in the page break. I

[NTG-context] Bug: Segmentation fault

2019-12-10 Thread Henri Menke
(-1, "foo","\string\\,")} \show\foo \foo \bye --- (gdb) run Starting program: /usr/local/bin/luatex test.tex This is LuaTeX, Version 1.11.2 (TeX Live 2020/dev) restricted system commands enabled. (./test.tex Program received signal SIGSEGV, Segmentation fault. get_sa_item (hea

Re: [NTG-context] Abstracting styles

2019-11-27 Thread Hans Hagen
On 11/26/2019 8:00 PM, Juraj Fiala wrote: Hi, I’m trying to learn ConTeXt, but I’m discovering a few hurdles along the way. Essentially what I currently want to do is to emulate paragraph styles found in other software, e.g. Scribus. After several hours of research all I have in my head

[NTG-context] Abstracting styles

2019-11-26 Thread Juraj Fiala
Hi, I’m trying to learn ConTeXt, but I’m discovering a few hurdles along the way. Essentially what I currently want to do is to emulate paragraph styles found in other software, e.g. Scribus. After several hours of research all I have in my head is a complete mess of conflicting approaches, so

Re: [NTG-context] expansion problem: random location

2019-09-14 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 13.09.2019 um 20:41: Am 2019-09-13 um 19:44 schrieb Wolfgang Schuster : Henning Hraban Ramm schrieb am 13.09.2019 um 18:51: Hi, in an example document I’m trying to get pictures of random size and placement. Unfortunately the expansion is over my head: Put

Re: [NTG-context] expansion problem: random location

2019-09-13 Thread Henning Hraban Ramm
> Am 2019-09-13 um 19:44 schrieb Wolfgang Schuster > : > > Henning Hraban Ramm schrieb am 13.09.2019 um 18:51: >> Hi, in an example document I’m trying to get pictures of random size and >> placement. >> Unfortunately the expansion is over my head: > Put

Re: [NTG-context] expansion problem: random location

2019-09-13 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 13.09.2019 um 18:51: Hi, in an example document I’m trying to get pictures of random size and placement. Unfortunately the expansion is over my head: % \useMPlibrary[dum] \usemodule[visual] \startluacode local locations = { 'top', 'bottom

[NTG-context] expansion problem: random location

2019-09-13 Thread Henning Hraban Ramm
Hi, in an example document I’m trying to get pictures of random size and placement. Unfortunately the expansion is over my head: % \useMPlibrary[dum] \usemodule[visual] \startluacode local locations = { 'top', 'bottom', 'left', 'right', } function RandomLocation

Re: [NTG-context] radiobuttons and other widgets

2019-08-05 Thread Henning Hraban Ramm
0m]{} I agree. I’d try it myself, but I know it’s over my head. I guess I loverlooked something important. But probably it’s quite easy to do in Lua? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de

[NTG-context] Split extreme tables across tables

2019-07-10 Thread Thangalin
The following document does not split across tables, which is a little surprising: \starttext \startplacetable[title={Average Annual Temperatures}] \startxtable \startxtablehead[head] \startxrow \startxcell[align=middle,width={0.10\textwidth}] Year \stopxcell \startxcell[align=middle,width={0.14

Re: [NTG-context] Processing XML: Header and footer, data manipulation

2019-04-22 Thread Axel Kielhorn
t; > I would replace docname with docan in both places (xmlsetsetup and its > proper \starxmlsetups). Great, it works now. > BTW, what should be child notes to #1? An special lpath or what? I want to add \xmltext{#1}{../../pverantwortlich} to psindoc And \xmltext{#1}{../../pverantwortlich} to psoutdoc

Re: [NTG-context] using metapost library makecirc with context.

2019-04-21 Thread Alan Braslau
On Sat, 20 Apr 2019 23:49:26 +0200 Hans Hagen wrote: > > let latex=textext ; > > That crashed here. In fact, when I used makecirc.mp, I just commented out the following few lines at the head of the file: %input latex; % % Commands definitions to do the labeled easier % %

Re: [NTG-context] Cascaded description

2019-04-06 Thread Hans Hagen
The result should look like: AAA ababababababab ababababababab BBB ababababab ababababab CCC ababab ababab <--> indent (margin?) of the first nested description in relation to its parent   should equal width of parent's head (+ distance?), i.e. widt

Re: [NTG-context] Cascaded description

2019-04-06 Thread Procházka Lukáš Ing .
ested descriptions (using "tab") to form a "cascade". The result should look like: AAA ababababababab ababababababab BBB ababababab ababababab CCC ababab ababab <--> indent (margin?) of the first nested description in relation

[NTG-context] Cascaded description

2019-04-02 Thread Procházka Lukáš Ing .
ed description in relation to its parent should equal width of parent's head (+ distance?), i.e. width of "AAA ", <--> indent (margin?) of the second nested description in relation to its parent should equal width of parent's head (+ distance?), i.e. width of "

Re: [NTG-context] Setting tabulate table width with \textwidth inside an item group

2019-02-27 Thread Clyde Johnston
setting in \startitemize to the head block. Do I need braces for \starthead but not for \startitem? \showframe \starttext \startitemize[n,3*broad,repeat][headstyle={\bf}] \starthead A header \stophead \startitemize[n,3*broad] \startitem \input ward \starttabulate[|cp(.25

[NTG-context] horizontal headalternatives ignore indentnext

2019-02-27 Thread Henri Menke
Dear list, If I choose the headalternative to be of horizontal type, e.g. “text”, the head placement will ignore the indentnext option. This can be traced back to the \strc_rendering_stop_placement macro where there is a check \ifconditional\headisdisplay \useindentnextparameter

Re: [NTG-context] Latest changes in some size registers

2019-02-25 Thread Wolfgang Schuster
y changing a lot of stuff and comparing it with Wiki and output, but it is quite lame approach.) \usemodule [setups] \starttext % \setuphead [..,..=..,..] \showrootvalues [head] % \setuphead [chapter] [..,..=..,..] \showinstancevalues [head] [chapter] \stoptext

Re: [NTG-context] text flowing around images

2019-02-06 Thread Henning Hraban Ramm
; See https://tex.stackexchange.com/a/32308/323 which is based on an example in > the metafun manual. Thank you all! I guess I can reduce the flow cases to <10 and use \parshape directly; thinking in lines looks a bit easier than the MetaPost way. Calculating the MP path from the TIFF alpha

Re: [NTG-context] regression in fontloader?

2019-01-19 Thread Hans Hagen
ots should be (start->head): initialrl = pardirstate(head) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69

Re: [NTG-context] Works and Doesn't Work

2019-01-18 Thread Wolfgang Schuster
}] % NO EFFECT \setupitemgroup[itemize][each][ ][afterhead=\underbar{AHEAD}] % NO EFFECT The beforehead and afterhead keys are only used when you use \head or \starthead. \setupitemgroup[itemize][each][ ][itemalign=right]% NO EFFECT This works only when

Re: [NTG-context] final thoughts on experiments with lua

2019-01-09 Thread Hans Hagen
found particularly impressive: 1. I've tried several times to make use of lpegs. Hans' code is full of it, and I know that it's fast and extremely versatile, but I found it difficult to wrap my head around its functioning and write useful code with lpegs. The ConTeXt wrapper makes

[NTG-context] final thoughts on experiments with lua

2019-01-09 Thread Thomas A. Schmitz
several times to make use of lpegs. Hans' code is full of it, and I know that it's fast and extremely versatile, but I found it difficult to wrap my head around its functioning and write useful code with lpegs. The ConTeXt wrapper makes this extremely easy; this is lpeg for the rest of us. It's

Re: [NTG-context] Strange behaviour of TABLE with \currentTABLErow

2018-12-10 Thread Tomas Hala
Hi Wolfgang, thank you for your reply. The split=repeat -- my fault, sorry. But -- surprisingly -- this mistake helped me along understanding the problem. I discovered -- if head and next head are defined -- that the "line number 1" servers for the opening head at the beginning

Re: [NTG-context] Strange behaviour of TABLE with \currentTABLErow

2018-12-03 Thread Wolfgang Schuster
] \bTABLE \bTABLEhead\bTR\bTH head \eTH\eTR\eTABLEhead \bTABLEbody \dorecurse{100}{\bTR\bTD \currentTABLErow xxx \eTD\eTR} \eTABLEbody \eTABLE \stoptext In this case, the head-line is alse counted which makes no sense and I do not know how to supress it. Even though

[NTG-context] Strange behaviour of TABLE with \currentTABLErow

2018-12-03 Thread Tomas Hala
Hi all, at https://wiki.contextgarden.net/Command/currentTABLEcolumn I learnt about \currentTABLErow etc. for counting lines in natural tables. I have got the following two minimal non-working examples (on TeXlive 2018): \starttext\setupTABLE[split=yes] \bTABLE \bTABLEhead\bTR\bTH head

[NTG-context] custom environment for geographical pictures; new head or special float?

2018-11-24 Thread Damien Thiriet
to symbols (natural table) --- All this is enclosed into a makeup to reduce margins. I am now automating this and wonder what should be the best way to do it. * creating a head style at subsection level was my first thought, but on the semantical point of view, it is not the best

[NTG-context] Which commands to use to show setups?

2018-11-24 Thread Tommaso Gordini
{section:instance:ownnumber:chapter} \showrootvalues[head] \showinstancevalues[head][chapter] \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

Re: [NTG-context] what defines the font size?

2018-10-19 Thread luigi scarso
t different values, because we are using 10pt. unitsPerEm different from 1000 exist: for example, if we look at the Fell types (see http://iginomarini.com/fell/the-revival-fonts) the IMFeENrm29C.otf has $ grep unitsPerEm IMFeENrm29C.ttx $ calc -p "1/2048" 0.00048828125 and the

Re: [NTG-context] linking to an external PDF file

2018-10-08 Thread Pablo Rodriguez
/") > if first == nil then > -- We have http to search for. > local content, status, authinfo = socket.http.request{ > method = "HEAD", > url = theuri, > } > return type(status) == "number" and status or "failure" > else > -- We must ascertain th

Re: [NTG-context] linking to an external PDF file

2018-10-08 Thread Hans van der Meer
local first,last = string.find(theuri, "file://") if first == nil then -- We have http to search for. local content, status, authinfo = socket.http.request{ method = "HEAD",

Re: [NTG-context] Homebrew packaging for macOS

2018-10-07 Thread Mojca Miklavec
r, but that's not in line with your desire to easily get the latest version. We had the latest version of ConTeXt in TLContrib repository for a while which could probably be reinstated if desired, but that means using MacTeX (even if from HB). If you want to provide a package for HB, you eith

[NTG-context] xtables setup

2018-07-29 Thread Henning Hraban Ramm
Hello again, I’m trying xtables for the first time. Is it possible to setup defined rows/columns like with natural tables, e.g. for a header, like in my example? The commented lines below are wrong. Is there another way? \definextable[headtable] % table with repeated head \setupxtable

Re: [NTG-context] Set up a theorem style

2018-07-26 Thread Fabrice Couvreur
of font to use in the body of the theorem > {0pt}% measure of space to indent > {\bfseries}% name of head font > * {. ---}% punctuation between head and body* > { }% space after theorem head; " " = normal interword space > {\thmname{#1}\thmnumber{ #2}\thmnote{ (#

Re: [NTG-context] Set up a theorem style

2018-07-25 Thread Aditya Mahajan
of space to leave above the theorem. E.g.: 3pt {\topsep}% measure of space to leave below the theorem. E.g.: 3pt {\itshape}% name of font to use in the body of the theorem {0pt}% measure of space to indent {\bfseries}% name of head font * {. ---}% punctuation between head and body* { }% space

[NTG-context] Set up a theorem style

2018-07-25 Thread Fabrice Couvreur
{\topsep}% measure of space to leave below the theorem. E.g.: 3pt {\itshape}% name of font to use in the body of the theorem {0pt}% measure of space to indent {\bfseries}% name of head font * {. ---}% punctuation between head and body* { }% space after theorem head; " " = normal

Re: [NTG-context] Problem with luatex experimental on linux armhf

2018-06-27 Thread Lutz Haseloff
gt; Debian jessie (armv7l) on xperia z1 with Android 7 (Gnuroot Debian) >and >> Debian stretch (armv8l) on galaxy a6 with Android 8 (UserLAnd) >> >> >> >$> context test.tex &>out-context > >should give something like > >$> head -1 out-contex

Re: [NTG-context] Problem with luatex experimental on linux armhf

2018-06-27 Thread luigi scarso
l) on galaxy a6 with Android 8 (UserLAnd) > > > $> context test.tex &>out-context should give something like $> head -1 out-context mtx-context | run 1: luatex --fmt="/opt/context/experimental/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/lu

Re: [NTG-context] sort order in registers (indexes)

2018-06-10 Thread Henning Hraban Ramm
etupregister[index][method={zm,zc}] > > I hope it helps, Thank you very much! I overlooked that there is indeed some documentation: http://wiki.contextgarden.net/Command/keyword:method (Source: http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/sort-ini.lua) Greetlings, Hraban --- ht

[NTG-context] Spacebefore and spaceafter a Float

2018-05-28 Thread John Grasty
? Sincerely, John Grasty \setupfloat[table][before={\blank[2*big]}] \setupxtable[frame=off] \setupxtable[head][topframe=on,bottomframe=on] \setupxtable[body][] \setupxtable[foot][bottomframe=on] \starttext \input douglas \startplacetable[title={Cost Overview}] \startxtable \startxtablehead[head

Re: [NTG-context] Referring to \head

2018-05-23 Thread Procházka Lukáš Ing .
Hello, deducing: \starttext \startitemize[i][stopper=),headstyle=bold] \starthead[h]{Head} Some text. \stophead \item[i] Item. \stopitemize See \in[h] and \in[i]. \stoptext Thank you. Lukas On Wed, 23 May 2018 13:18:27 +0200, Wolfgang Schuster

<    1   2   3   4   5   6   7   8   9   10   >