Re: [NTG-context] mkiv digits/units zero padding not working

2020-05-07 Thread Wolfgang Schuster
} Is there something missing in here because the \ifsecondargument check here makes non sense because the second argument is mandatory and not optional. Is this what you want? \define[2]\mpm {\digits{#1}% \doifsomething{#2}{\,±\,\digits{#2}}} Since I was hoping that I could exploit the zeropadding

Re: [NTG-context] Shift tabulate into margin and center

2020-05-05 Thread Tim Steenvoorden
r=0pc, > height=49pc, > footer=0pc, > bottomdistance=2.5pc, > bottom=1pc, > location=middle] > > \define\fullwidth{\dimexpr(\leftmargindistance+\leftmarginwidth+\textwidth)} > > \section{First} > \subsection{First first} > > \input tufte > > \setupnarrower[left=

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Fabrice Couvreur
\usemodule[pgfplots] \pgfplotsset{compat=newest} \usebodyfont[xitsbidi] \define[1]\cscript{\start\m{{\mathscript{#1}}}\stop} \startmidaligned \define[1]\cscript{\start\m{{\mathscript{#1}}}\stop} \starttikzpicture \startaxis \addplot {x}; \node[above left] at (2,2) {\cscript{C}}; \stopaxis

[NTG-context] Shift tabulate into margin and center

2020-05-04 Thread Tim Steenvoorden
=middle] \define\fullwidth{\dimexpr(\leftmargindistance+\leftmarginwidth+\textwidth)} \section{First} \subsection{First first} \input tufte \setupnarrower[left=-9pc] \startnarrower[left] \startframedtext[frame=off,topframe=on,bottomframe=on,align=middle,width=\fullwidth] The whole frame should

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, Fabrice Couvreur wrote: Hi, Sorry to insist but I cannot fix this problem. Thanks for any help. I don't know the answer, but here is a simpler example without pgfplot which fails (different calligraphic C's): \define[1]\cscript{\start\switchtobodyfont[xitsbidi]\m

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Fabrice Couvreur
this problem ? > Thanks for your help. > Fabrice > > begin example > > \usemodule[pgfplots] > \pgfplotsset{compat=newest} > > \define[2]\cscript{\start\switchtobodyfont[xitsbidi]\m{{\mathscript{#1}}_{#2}}\stop} > > \starttext > > \startmidaligned > \startt

Re: [NTG-context] module article-basic interferes with \definebodyfont?

2020-05-01 Thread Hans Hagen
On 5/1/2020 1:58 PM, Gerben Wierda wrote: But my guess is that if I had used ss instead of rm everywhere in my code it would have worked as well. or define the ss first and don't use \rm (first defined is default

Re: [NTG-context] register entries in footnotes

2020-04-26 Thread Hans Hagen
On 4/26/2020 4:35 PM, Thomas A. Schmitz wrote: A similar question has been asked three years ago, and Rik Kabel posted a partial solution, adapted here: \defineprocessor [Footnote] [right={ n}] \define[1]   \fnindex{\index[Footnote->]{#1}} \starttext This is a sentence with a t

[NTG-context] register entries in footnotes

2020-04-26 Thread Thomas A. Schmitz
A similar question has been asked three years ago, and Rik Kabel posted a partial solution, adapted here: \defineprocessor [Footnote] [right={ n}] \define[1] \fnindex{\index[Footnote->]{#1}} \starttext This is a sentence with a term in the index: cat\index{cat}. This sentence also

Re: [NTG-context] Using \doifelse to change the itemization symbol in specific cases

2020-04-25 Thread Kevin Kenan
y code that doesn’t work. >> \define[1]\StepsCommand{\doifelse{#1}{2}{k}{#1}\ignorespaces} >> \defineitemgroup[Steps] >> \setupitemgroup[Steps][each][n,packed] >> \setupitemgroup[Steps][each][left=\StepsCommand] >> \starttext >> \startSteps >> \item A &

Re: [NTG-context] Using \doifelse to change the itemization symbol in specific cases

2020-04-25 Thread Wolfgang Schuster
Kevin Kenan schrieb am 25.04.2020 um 21:24: I’m trying to create a conditional that changes the symbol used for certain item numbers. Here’s my code that doesn’t work. \define[1]\StepsCommand{\doifelse{#1}{2}{k}{#1}\ignorespaces} \defineitemgroup[Steps] \setupitemgroup[Steps][each][n,packed

[NTG-context] Using \doifelse to change the itemization symbol in specific cases

2020-04-25 Thread Kevin Kenan
I’m trying to create a conditional that changes the symbol used for certain item numbers. Here’s my code that doesn’t work. \define[1]\StepsCommand{\doifelse{#1}{2}{k}{#1}\ignorespaces} \defineitemgroup[Steps] \setupitemgroup[Steps][each][n,packed] \setupitemgroup[Steps][each][left=\StepsCommand

[NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-04-24 Thread Fabrice Couvreur
Hi, This macro was written by Otared and it works well unless I change the size of the font (see the second graph). How to correct this problem ? Thanks for your help. Fabrice begin example \usemodule[pgfplots] \pgfplotsset{compat=newest} \define[2]\cscript{\start\switchtobodyfont[xitsbidi

Re: [NTG-context] Negative width vrule ignored in LuaMETATeX

2020-04-24 Thread Hans Hagen
][protrusion=myown] \definedfont[Serif*whatever] \setupalign[hanging] \dorecurse{100}{(#1) } \stoptext of course you need to define the cjk fences etc. Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Hyphentation/Linebreak after x characters

2020-04-24 Thread Benjamin Buchmuller
unction(dictionary,word,n) >> return all >> end >> ) >> \stopluacode >> >> \definehyphenationfeatures >> [dna] >> [characters=all, >>alternative=dna] >> >> \starttext >> >> \startfram

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Gerben Wierda
0 um 05:19 schrieb kaddour kardio : >> >> It's noticed that Optima is a Sans Serif font. >> Maybe it conflicts with MacOS way to handle fonts. > > No, ConTeXt doesn’t care what kind of font you define as rm/ss/tt, and the O

Re: [NTG-context] Basic font question (Optima, but no bold, no italics)

2020-04-24 Thread Henning Hraban Ramm
> Am 24.04.2020 um 05:19 schrieb kaddour kardio : > > It's noticed that Optima is a Sans Serif font. > Maybe it conflicts with MacOS way to handle fonts. No, ConTeXt doesn’t care what kind of font you define as rm/ss/tt, and the OS has no say in that.

Re: [NTG-context] Hyphentation/Linebreak after x characters

2020-04-23 Thread Rik Kabel
TCCTGGTTGG%   TCTTACATTCTGTCGCCTC%   CTACTAGAGCCGGCATATT%   CTAGAAGGGCCGCCTTCATGTGG% \stopframedtext \stoptext [1] https://mailman.ntg.nl/pipermail/ntg-context/2017/089106.html Wolfgang And without lua, just two lines of ConTeXt with a bit of TeX: \define[1]\DNA{\handletokens #1\with\DNAspacer}

Re: [NTG-context] Hyphentation/Linebreak after x characters

2020-04-23 Thread Benjamin Buchmuller
no difference towards the result. This is the MWE based on your solution: \define[2]\mycommandc{ \startxrow \startxcell o#1 \stopxcell \startxcell \tt\WORD{5'-#2} \stopxcell \stopxrow } \definebreakpoint[mybreaks][][nright=100,nleft=100,type=1] \setbreakpoints[mybreaks] \starttext

Re: [NTG-context] Hyphentation/Linebreak after x characters inside \WORD?

2020-04-23 Thread Rik Kabel
On 4/23/2020 15:01, Benjamin Buchmuller wrote: Sorry, I have just realized that the problem might not be \WORD{} actually, so this one hyphenates: \define[2]\mycommand{ \startxrow \startxcell o#1 \stopxcell \startxcell \tt\WORD #2 \stopxcell \stopxrow

Re: [NTG-context] Hyphentation/Linebreak after x characters inside \WORD?

2020-04-23 Thread Benjamin Buchmuller
Sorry, I have just realized that the problem might not be \WORD{} actually, so this one hyphenates: \define[2]\mycommand{ \startxrow \startxcell o#1 \stopxcell \startxcell \tt\WORD #2 \stopxcell \stopxrow } Whereas these ones don’t: \define[2

[NTG-context] Hyphentation/Linebreak after x characters inside \WORD?

2020-04-23 Thread Benjamin Buchmuller
using: \defineseparatedlist [mylist] [ separator={,}, quotechar={"}, command=\mycommand ] \define[2]\mycommand{ \startxrow \startxcell o#1 \stopxcell \startxcell 5’-{\tt\WORD{#2}}-3' \stopxcell \stopxrow } Since I

Re: [NTG-context] Setting up macvim in mac os catalina to work with LMTX

2020-04-22 Thread Jan-Erik Hägglöf
ant to use by setting `g:context_mtxrun`, e.g.: > >:let g:context_mtxrun='/path/to/context/mtxrun' > > Then, executing :ConTeXt will run the configured command. You may also > define shell enviroment variables, if needed. For instance, I have > configured Vim to use my installation

Re: [NTG-context] Setting up macvim in mac os catalina to work with LMTX

2020-04-22 Thread BPJ
garden.net/Vim> > > > > But I do not understand how to customize it to be directed to the path > > to my engine > > > > I’ve installed the LMTX in /Users/janneman/context-osx-64/ > > I haven't tried LMTX yet, but you may configure the path to the ConTeXt > e

Re: [NTG-context] Setting up macvim in mac os catalina to work with LMTX

2020-04-22 Thread Jan-Erik Hägglöf
may configure the path to the ConTeXt > executable you want to use by setting `g:context_mtxrun`, e.g.: > > :let g:context_mtxrun='/path/to/context/mtxrun' > > Then, executing :ConTeXt will run the configured command. You may also > define shell enviroment variables, if needed

Re: [NTG-context] Setting up macvim in mac os catalina to work with LMTX

2020-04-22 Thread Jan-Erik Hägglöf
to use by setting `g:context_mtxrun`, e.g.: > > :let g:context_mtxrun='/path/to/context/mtxrun' > > Then, executing :ConTeXt will run the configured command. You may also > define shell enviroment variables, if needed. For instance, I have > configured Vim to use my

Re: [NTG-context] Setting up macvim in mac os catalina to work with LMTX

2020-04-22 Thread Nicola
ConTeXt executable you want to use by setting `g:context_mtxrun`, e.g.: :let g:context_mtxrun='/path/to/context/mtxrun' Then, executing :ConTeXt will run the configured command. You may also define shell enviroment variables, if needed. For instance, I have configured Vim to use my inst

Re: [NTG-context] lmtx & lohit-devanagari fonts

2020-04-22 Thread Saša Janiška
shell works a bit differently, but in this case problem is that OSFONTDIR is a variable like PATH... Otherwise: $ set TEST a b c# define TEST envvar as array $ echo $TEST a b c $ echo $TEST[2] # access 2nd member from the array b $ set -e TEST[2]# remove 2nd member from the a

Re: [NTG-context] Text around an image

2020-04-17 Thread Fabrice Couvreur
, Fabrice Couvreur a écrit : > Hi, > I know that this question has been raised several times (especially by me > !), but the solutions provided sometimes work and sometimes not, especially > in this example. > Thanks for your help. > Fabrice > > \useMPlibrary [dum] &g

[NTG-context] Text around an image

2020-04-16 Thread Fabrice Couvreur
Hi, I know that this question has been raised several times (especially by me !), but the solutions provided sometimes work and sometimes not, especially in this example. Thanks for your help. Fabrice \useMPlibrary [dum] \define\ItemCommand {\hskip\zeropoint\relax\autoinsertnextspace

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread kaddour kardio
wesome installed in my system , maybe i should switch off > to otf version? > > defining > unknown font 'fontawesome5brandsregular400', loading > aborted > fonts > defining > unable to define > 'fontawesome5brandsregular400.otf' as 'thedefinedfont--0' &

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread kaddour kardio
this is a part of my log file. i have ttf-fontawesome installed in my system , maybe i should switch off to otf version? defining > unknown font 'fontawesome5brandsregular400', loading aborted fonts > defining > unable to define 'fontawesome5brandsregul

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread kaddour kardio
th] [TeX Gyre Pagella Math][default] > >> \definetypeface[mainfont][tt][mono] [Dejavu Mono][default] [rscale=0.8, > >> features=none] > >> \setupbodyfont[mainfont,11pt] > >> \usesymbols[fontawesome] > >> > >> \define\FA{\dosingleargument\doFA} >

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread Hans Hagen
] \definetypeface[mainfont][mm][math] [TeX Gyre Pagella Math][default] \definetypeface[mainfont][tt][mono] [Dejavu Mono][default] [rscale=0.8, features=none] \setupbodyfont[mainfont,11pt] \usesymbols[fontawesome] \define\FA{\dosingleargument\doFA} \def\doFA[#1]{\inlinedbox    {\scale[height=1em]{\symbol

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread Aditya Mahajan
Pagella Math][default] \definetypeface[mainfont][tt][mono] [Dejavu Mono][default] [rscale=0.8, features=none] \setupbodyfont[mainfont,11pt] \usesymbols[fontawesome] \define\FA{\dosingleargument\doFA} \def\doFA[#1]{\inlinedbox {\scale[height=1em]{\symbol[fontawesome][#1]}}} \starttext Checked box \FA

[NTG-context] Fontawesome in lmtx

2020-04-10 Thread kaddour kardio
][mono] [Dejavu Mono][default] [rscale=0.8, features=none] \setupbodyfont[mainfont,11pt] \usesymbols[fontawesome] \define\FA{\dosingleargument\doFA} \def\doFA[#1]{\inlinedbox {\scale[height=1em]{\symbol[fontawesome][#1]}}} \starttext Checked box \FA[check-square-o] Unchecked box \FA[square-o

Re: [NTG-context] Primes far too high in Lucida Type1

2020-03-31 Thread Tim Steenvoorden
Hi Wolfgang, That 's a pity indeed. I played around a bit and found a dirty hack using catcodes. Maybe not the best solution, but it works for me. Posting it here for future reference. ``` \define\textprime{'} \makecharacteractive ' \define'{\lowerbox{0.3ex}\hbox{\math{\textprime}}} ``` Cheers

[NTG-context] placelistofsynonyms without tabulate

2020-03-30 Thread Benjamin Buchmuller
if there is a simple way to define my own command to achieve the following: \definesynonyms[glossary][glossaries][\fullgloss]%[#4] % I wonder also what #4 is supposed to do? \setupsynonyms[glossary][headstyle=bold] \glossary[US]{United States}{The US is a country in the Americas.} \glossary[UK]{United Kingdom

[NTG-context] Distance between table rows

2020-03-25 Thread Tim Steenvoorden
? ``` \define\SR   {\NC\NR\TB[halfline]} \starttabulate[|r|l|]   \NC one   \NC two   \NC\NR   \NC two   \NC three \SR   \NC four  \NC five  \NC\NR   \TB[halfline]   \NC five  \NC six \NC\NR \stoptabulate ``` Cheers, Tim

Re: [NTG-context] write a subtitle under the title of a chapter using outlined font

2020-03-19 Thread Hans Hagen
5blue withpen pencircle scaled .75pt); \stopuseMPgraphic \define[1]\outlineFill{\useMPgraphic{outlineT}{tt="#1"}}% \setuphead[chapter,title]  [textcommand=\outlineFill,   color=.625Blue,   numbercommand=\outlineFill,   number=yes] \setupbodyfont[rm, 12pt] \starttext \start

[NTG-context] write a subtitle under the title of a chapter using outlined font

2020-03-19 Thread Jeong Dal
, Dalyoung ** \startuseMPgraphic{outlineT} draw outlinetext.b (\MPvar{tt}) (withcolor .75white) (withcolor .725blue withpen pencircle scaled .75pt); \stopuseMPgraphic \define[1]\outlineFill{\useMPgraphic{outlineT}{tt="#1"}}% \setuphead[cha

Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-15 Thread Wolfgang Schuster
a small number) don't have such a big difference between the ex-height of the upright and italic styles which makes it hard to notice the problem. begin example \define[1]\ShowExheight {\bgroup \setupbodyfont[#1] \subject{#1} \starttabulate \NC tf \NC \tf \the\exheight \NC\NR

Re: [NTG-context] ntg-context Digest, Vol 189, Issue 28

2020-03-15 Thread Yves Cloutier
ef macro to return the pair of a picture and a bounding > box. I don't want to use the setbound operator, because as soon as I do > that, I cannot access the components of the picture anymore with pathpart. > > I found metapost vardef returning multiple values < > https://tex.stackexc

[NTG-context] METAPOST vardef returning multiple and non-numeric types as a single answer?

2020-03-15 Thread Gerben Wierda
macros for each result type. I tried many things, amongst which: vardef Foo( expr w, h) % define pic pic end group,begingroup % define pic pic endif picture foo[]; foo = Foo( 2, 4); ___ If your question is of in

Re: [NTG-context] Only-black emojis in LMTX

2020-03-11 Thread Hans Hagen
define it? You need something \definefont[YourFont][somefontname*default,color at 15pt] or define a featureset that sets 'color=yes' (or some specific rendering using the other keys for color fonts). Hans

Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread alephzorro
Chapter1 -> 1retpahCyM. Basically any highly non-trivial > > transformation that really needs Lua. > > I've written simple Lua macros before, but the following approach trying to > > define textcommand does not work since I can't find the way to pass the raw > >

Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread alephzorro
rivial transformation that really needs Lua. > > \starttext > > \completecontent > > \startchapter[title={Sample Chapter},list={retpahC elpmaS}] > \stopchapter > > \stoptext > > > I've written simple Lua macros before, but the following approach trying > > to define

Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread Wolfgang Schuster
ritten simple Lua macros before, but the following approach trying to > define textcommand does not work since I can't find the way to pass the raw > title to my transform function. > > \startluacode > userdata = userdata or {} > function userdata.mytransform(title) > --

Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread Hans Hagen
tle={Sample Chapter},list={retpahC elpmaS}] \stopchapter \stoptext I've written simple Lua macros before, but the following approach trying to define textcommand does not work since I can't find the way to pass the raw title to my transform function. \startluacode userdata = userd

[NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread alephzorro
Hello, I would like to display titles differently in TOC than they appear in text. For example, MyChapter1 -> 1retpahCyM. Basically any highly non-trivial transformation that really needs Lua. I've written simple Lua macros before, but the following approach trying to define textcommand d

Re: [NTG-context] Any plans for an active color management?

2020-02-17 Thread Henning Hraban Ramm
led. I think I can do this in Gimp. ✔︎ >> For type and logos I still rely on (device dependend) CMYK colors and >> my experience how they’ll come out in Euroscale printing. > Device depended means what? Not profiled. I.e. the actual resulting color depends on the device, if it’s only d

Re: [NTG-context] Any plans for an active color management?

2020-02-17 Thread Jan U. Hasecke
to CMYK with the above cited profile chain? Or shall I tell the designer: These are the values I need as CMYK, just do it. > Colors that you define in TeX or Metapost are a different problem. I > *think* they should use the output intent as their profile. But I > don’t know if the intent option

Re: [NTG-context] Lucida small caps

2020-02-17 Thread Mikael P. Sundqvist
file? > > > > best use \smallcaps or somethign equivalent > > > Ah, so it was the \sc that was the problem. Thanks! > \sc is more somthing mkii ... when type1 fonts (in an 8 bit universum) > smallcaps and oldstyle and such meant using a different font > > nowadays one can tur

Re: [NTG-context] Any plans for an active color management?

2020-02-17 Thread Henning Hraban Ramm
system that will work world-wide, even if HKS is still usual in Germany and Toyo in Japan.) It could also work to use spot colors and have the printshop convert them to “their” CMYK profile. Colors that you define in TeX or Metapost are a different problem. I *think* they should use the output

[NTG-context] Any plans for an active color management?

2020-02-17 Thread Jan U. Hasecke
are RGB colors as we are doing online first. So if I create a poster or a flyer I have to do this: 1. Decide which print shop will print the material. 2. Download and install the color profile for this print shop in ConTeXt. 3. Specify CMYK values by using transicc with the given profile 4. Define

Re: [NTG-context] Lucida small caps

2020-02-16 Thread Hans Hagen
8 bit universum) smallcaps and oldstyle and such meant using a different font nowadays one can turn them on/off as features and when you need them a lot you can even define an extra bodyfont variant from them and switch to that one when needed now, when smallcaps and oldstyle etc became features

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice Couvreur
) enddef; match((0,0)); \stopMPcode \starttikzpicture \define[2]\allumette{ \fill [yellow] (#1,#2) rectangle (#1+4,#2+0.2); \fill [yellow!60!black] (#1,#2) -- ++(4,0)-- ++(0.1,-0.05) -- ++(-4,0) -- ++(-0.1,0.05); \draw (#1,#2) -- ++(0,0.2) -- ++(4,0) -- ++(0,-0.2) -- ++(0.1,-0.05)

[NTG-context] page break

2020-02-09 Thread Fabrice Couvreur
Hi, Sorry if my minimal example is not, but I have to understand with your help what is wrong. For example, why a page break after the second item when there seems to be enough space to stay on this page ? Thanks Fabrice \define\starttikzpicture {\hbox\bgroup\forcecolorhack\tikzpicture

Re: [NTG-context] Official file ending?

2020-02-05 Thread Hans Hagen
w to apply primitives. Maybe not PlainTeX, but plain TeX. E.g. we usually use TeX primitives like \def (even if we have \define), while with LaTeX you use \newcommand, similar with \vbox and others. I understood LuaMetaTeX, as a stripped-down typesetting engine, would be closer to the spirit of K

Re: [NTG-context] Official file ending?

2020-02-05 Thread Henning Hraban Ramm
f how to apply primitives. Maybe not PlainTeX, but plain TeX. E.g. we usually use TeX primitives like \def (even if we have \define), while with LaTeX you use \newcommand, similar with \vbox and others. I understood LuaMetaTeX, as a stripped-down typesetting engine, would be closer to the spir

[NTG-context] New to metapost, could use some help with first steps

2020-02-02 Thread Gerben Wierda
s is one of the more complex shapes, if I can do this one it might give me enough information to define all the other ones. Sorry to bother all of you but the learning curve is steep and I always have not enough time. Gerben Wierda Chess and the Art of Enterprise Architecture <https://ea.rna.

Re: [NTG-context] Superios with Cardo font

2020-01-28 Thread Pablo Rodriguez
Hi Denis, you can’t have them all. It might be related to the loopup order in the font itself. onum or pnum precedence might require onum/pnum sups. > (Note: Cardo is a ttf font, Linux Libertine O is a otf) I think this makes no difference at all. > By the way, what is the correct way t

Re: [NTG-context] columnset issues

2020-01-27 Thread Henning Hraban Ramm
\startcolumnset, the "AdSpace" appears on the second page. While this was the intention of the example, it seems like I can’t control on which page my ads/images appear. In my actual project, all the defined columnsetareas show up on the second page (where the first columnset starts

[NTG-context] Superios with Cardo font

2020-01-27 Thread Denis Maier
]\feature[+][f:superiors]12345} \stoptext Why is it that I have to manually disable onum and pnum with Cardo for sups to work? (Note: Cardo is a ttf font, Linux Libertine O is a otf) By the way, what is the correct way to define a new font feature for superios

Re: [NTG-context] line numbering within frame

2020-01-25 Thread Wolfgang Schuster
gt; > I would be grateful for an answer because I have no clue ;-) In my real life > case, I fetch the content of the frame from an xml file. Since not every > frame has line numbering, I am already inside the frame when I have to define > and set up the line numbering environment. I c

Re: [NTG-context] line numbering within frame

2020-01-23 Thread Thomas A. Schmitz
of the frame from an xml file. Since not every frame has line numbering, I am already inside the frame when I have to define and set up the line numbering environment. I can probably code around it, but it makes my life definitely

Re: [NTG-context] alignment parameters

2020-01-19 Thread Henning Hraban Ramm
ntrollable without); how to >> get more control over makeups and that columnsets are somewhat fastidious, >> esp. with floats… > > Use \setuplayout[grid=yes] when "grid=strut" doesn't work. That’s what I do. >> \setuppapersize[A6] >> \showframe[text] >&

Re: [NTG-context] alignment parameters

2020-01-19 Thread Wolfgang Schuster
that columnsets are somewhat fastidious, > esp. with floats… Use \setuplayout[grid=yes] when "grid=strut" doesn't work. > Still open: this one, different behaviour of \blank in before vs. command, > chapters always starting on left pages despite page=no (a side effect of the >

[NTG-context] columnset issues

2020-01-19 Thread Henning Hraban Ramm
] \definecolor[fakerulecolor][gray] %\setuplayout[grid=yes] %\showgrid \define[2]\MySection{\vbox{% \definecolor[fakerulecolor][blue] %\blank[line,max]% {\strut #2}\par }} \setuphead[section][ command=\MySection, before={\blank[line]}, %before=, after=, style=\tf, ] \definecolumnset

Re: [NTG-context] alignment parameters

2020-01-19 Thread Henning Hraban Ramm
y, but it’s more controllable without); how to get more control over makeups and that columnsets are somewhat fastidious, esp. with floats… Still open: this one, different behaviour of \blank in before vs. command, chapters always starting on left pages despite page=no (a side effect of

[NTG-context] column(sets) questions

2020-01-18 Thread Henning Hraban Ramm
the discussion I had with Hans in Bassenge... * In the preface of the columnsets manual we’re advised to \usemodule[newcolumnsets] This seems outdated. * If I use columnsets for two and three column pages, should I also use a one-column columnset for consistency? * Can I define columnsetspans whose

Re: [NTG-context] Quotation dash issues with semantic markup

2020-01-17 Thread Wolfgang Schuster
=\endash~, %    midsentence=~\endash, rightsentence=~\endash] \define\quotedash{\emdash\endash} %\setupbackend[export=yes] \starttext \startsection[title=Introduction] Any of you able to help me get my quotation dashes into line when automatically inserted by the semantic commands?  I'm sure

[NTG-context] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Tomas Hala
(it was ok) but after adding "option=mp" I came across the same problem. Is there any way how to define behaviour of both boxes in the existing \startMP environment apart? Or is it not possible? Best wish

Re: [NTG-context] fancy chapter setup

2020-01-13 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 13.01.2020 um 19:21: Am 2020-01-12 um 16:07 schrieb Henning Hraban Ramm : Since the structureuservariables of a section aren’t defined in that section’s "before", I would need a macro or buffer to define the contents of that epigraph page, like thi

Re: [NTG-context] fancy chapter setup

2020-01-13 Thread Henning Hraban Ramm
> Am 2020-01-12 um 16:07 schrieb Henning Hraban Ramm : > > Since the structureuservariables of a section aren’t defined in that > section’s "before", I would need a macro or buffer to define the contents of > that epigraph page, like this: > > That’s possible

Re: [NTG-context] fancy chapter setup

2020-01-12 Thread Henning Hraban Ramm
Since the structureuservariables of a section aren’t defined in that section’s "before", I would need a macro or buffer to define the contents of that epigraph page, like this: \def\PreImg{Dummy} \startsetups FancyChapter \setupheadertexts[][][][] \doifelsebu

Re: [NTG-context] Keep photographer in one line in a caption

2020-01-11 Thread Henning Hraban Ramm
caption, it should >> move to the next line. ATM I’m clueless... >> >> That’s not enough (also not a MWE): >> >> \define[1]\Foto{\hfill\hbox{\tfx Foto: #1}} > > Doesn't \wordright do what you want? I a

Re: [NTG-context] Keep photographer in one line in a caption

2020-01-11 Thread Rik Kabel
not a MWE): \define[1]\Foto{\hfill\hbox{\tfx Foto: #1}} Best, Hraban Doesn't \wordright do what you want? -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

[NTG-context] Keep photographer in one line in a caption

2020-01-11 Thread Henning Hraban Ramm
Yet another small problem: I my photo captions, the photographer should be right aligned and in one line, i.e. if it doesn’t fit into the last line of the caption, it should move to the next line. ATM I’m clueless... That’s not enough (also not a MWE): \define[1]\Foto{\hfill\hbox{\tfx Foto: #1

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
also use a different section name. But I don’t think that’s the problem. (The page number should appear on the right page; it wouldn’t hurt on the left page, but the chapter title should only appear on following pages.) Best, Hraban %% \defi

[NTG-context] uppercase section titles: no line breaking?

2020-01-11 Thread Henning Hraban Ramm
Hi again, I’m trying to get uppercase titles with \WORD, but they aren’t broken into lines; while \WORD works in normal text. What’s the matter? Best, Hraban % \define[2]\MyChapter{ \WORD{#2} } \setuphead[chapter][ command=\MyChapter ] \starttext \chapter{ \input tufte } \WORD{ \input

[NTG-context] fancy chapter setup

2020-01-11 Thread Henning Hraban Ramm
hink that’s the problem. (The page number should appear on the right page; it wouldn’t hurt on the left page, but the chapter title should only appear on following pages.) Best, Hraban %% \define[2]\FancyChapter{% \doifnot{\structureuservari

Re: [NTG-context] Quotation dash issues with semantic markup

2019-12-30 Thread Hans Hagen
=~\endash, rightsentence=~\endash] \define\quotedash{\emdash\endash} %\setupbackend[export=yes] \starttext \startsection[title=Introduction] Any of you able to help me get my quotation dashes into line when automatically inserted by the semantic commands? I'm sure a number of you look

Re: [NTG-context] Coding for new Unicode characters

2019-12-29 Thread Hans Hagen
cron {\buildtextmacron r} \definecharacter Rlowmacron {\buildtextmacron R} \define\lLM{\llowmacron} \define\LLM{\Llowmacron} \define\nLM{\nlowmacron} \define\NLM{\Nlowmacron} \define\rLM{\rlowmacron} \define\RLM{\Rlowmacron} This seems to do it, although if there is a better way please feel

Re: [NTG-context] Coding for new Unicode characters

2019-12-28 Thread Richard Mahoney | Indica et Buddhica
on R} \define\lLM{\llowmacron} \define\LLM{\Llowmacron} \define\nLM{\nlowmacron} \define\NLM{\Nlowmacron} \define\rLM{\rlowmacron} \define\RLM{\Rlowmacron} This seems to do it, although if there is a better way please feel free to say. Best, Richard -- Richard Mahoney | Indica et Budd

Re: [NTG-context] Adjust kern for one character

2019-12-26 Thread Rik Kabel
}    }    }    fonts.handlers.otf.addfeature {    name = "xkern",    type = "kern",    data = {    ["x"] = { ["x"] = 500 },    [" "] = { ["J"] = 500 }    }    }     \stopluac

Re: [NTG-context] Adjust kern for one character

2019-12-26 Thread Hans Hagen
fonts.handlers.otf.addfeature { name = "xkern", type = "kern", data = { ["x"] = { ["x"] = 500 }, [" "] = { ["J"] = 500 } } } \stopluacode \startbu

Re: [NTG-context] Adjust kern for one character

2019-12-26 Thread Rik Kabel
["x"] = { ["x"] = 500 }, [" "] = { ["J"] = 500 } } } \stopluacode \startbuffer[Sample] g, Jaxxb AJon \stopbuffer \define[2]\Test{ {\switchtobodyfont[#1]#2\getbuffer[Sample]}} \setupbodyfo

Re: [NTG-context] Symbol Footnote Command

2019-12-23 Thread Aykut Aykutt
This is the third sentence with a footnote.\footnote{This is the > > third footnote and its mark is "2". } > > \stopdocument > > > > Clearly this conversion repeats the marks "1", "*" and "2" repeatedly. > > Is th

Re: [NTG-context] Symbol Footnote Command

2019-12-23 Thread Hans Hagen
second footnote and its mark is "*". } This is the third sentence with a footnote.\footnote{This is the third footnote and its mark is "2". } \stopdocument Clearly this conversion repeats the marks "1", "*" and "2" repeatedly. Is the

[NTG-context] Symbol Footnote Command

2019-12-23 Thread Aykut Aykutt
ence with a footnote.\footnote{This is the third footnote and its mark is "2". } \stopdocument Clearly this conversion repeats the marks "1", "*" and "2" repeatedly. Is there a way to define a new/special footnote command (say, "\symfootnote") which

Re: [NTG-context] Disappearing font feature

2019-12-22 Thread Rik Kabel
On 12/22/2019 06:08, Hans Hagen wrote: btw, this happens often, like with oldstyle, the wished default is the hard coded default so one has to enable/disable now, what you miss is that you define a font without applying any features ... Thank you, Hans, I see now that SS01 reverses

Re: [NTG-context] Disappearing font feature

2019-12-22 Thread Floris van Manen
' is active open source > level 2, order 3, name './j2.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded fonts > defining > font with asked name 'jost-100-hairline' is not found using lo

Re: [NTG-context] Disappearing font feature

2019-12-22 Thread Hans Hagen
irI\subff{ss01}\getbuffer[ss01]} \stoplines \stoptext btw, this happens often, like with oldstyle, the wished default is the hard coded default so one has to enable/disable now, what you miss is that you define a font without app

Re: [NTG-context] setting the color of cropmarks

2019-12-20 Thread mf
ametric solution would let you define a "registration" color in ConTeXt, then map it to the corresponding "withcolor" instruction in mp-crop.mkiv. I'm sure there are already functions to do that mapping. It's the difficult part (at least for me) when Hans talks about adding

Re: [NTG-context] setting the color of cropmarks

2019-12-19 Thread Henning Hraban Ramm
ping it only to the K channel. I’d regard that a misconfiguration on their side. Maybe it helps to define the output intent: https://wiki.contextgarden.net/Command/setupbackend https://wiki.contextgarden.net/PDFX >> If you need more control you can create your own marks and add them as >> backgr

Re: [NTG-context] Ebooks with ConTeXt?

2019-12-10 Thread Nicola
as above? Do >>> you need to modify the generated CSS for that, or would ConTeXt (or >>> Pandoc) allow you to take care of (some of) those things? >>> >>> Nicola >> >> For Pandoc: Some things can be tweaked with pandoc, but for anything >> that is a bit m

Re: [NTG-context] Ebooks with ConTeXt?

2019-12-10 Thread Henning Hraban Ramm
ndoc) >> allow you to take care of (some of) those things? >> >> Nicola > > For Pandoc: Some things can be tweaked with pandoc, but for anything that is > a bit more advanced you'll probably need a custom CSS. For special content > you can use spans and divs. In

Re: [NTG-context] Ebooks with ConTeXt?

2019-12-10 Thread Denis Maier
that is a bit more advanced you'll probably need a custom CSS. For special content you can use spans and divs. In your custom CSS you can define how those elements should be rendered. Sounds pretty similar to what Hans wrote in his response. Probably the main questions are if you prefer to work

Re: [NTG-context] Filling a page with \thinrules

2019-12-07 Thread Rik Kabel
, but maybe nowadays one could also right a more readable lua code to achieve the same. Best regards: Otared K. \define\thinrulesfillpage% { \hphantom{Answer} % this is necessary, I don't know why... \blank \scratchcounter\dimexpr(\pagegoal-\pagetotal-2\lineheight

<    6   7   8   9   10   11   12   13   14   15   >