[NTG-context] Defining \qed (was: Bug with \wordright...)

2020-08-08 Thread Otared Kavian
Hi Wolfgang, Thanks for your explanations and the correct definition of the close symbol in an enumeration. Following up the discussions with Hans, in order to put a close sympbol at the end of a formula, I have the following for the definition of \qed: %% begin example-qed.tex \showframe

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

2020-08-04 Thread Jairo A. del Rio
idth=\textwidth,height=\textheight,#1]% > > \vbox > > orientation 1 > > \doifelsedimension{\dummyparameter{width}}{to > > \dummyparameter{width}}{}% > > \bgroup > > \doifelsedimension{\dummyparameter{height}}{\hsize > > \dummyparameter{height}}{}} > &

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

2020-08-04 Thread Hans Hagen
test \starttext \definefont [MyFont] [file:mnglwhiteotf.ttf*default,mongolian @ 24pt] \showframe \startvertical \MyFont \setupalign[stretch,tolerant,stretch] \setupinterlinespace[40pt]% ᠣᠢᠷ᠎ᠠ ᠵᠢᠨ ᠡᠳᠦᠷ᠂ ᠦᠪᠦᠷ ᠮᠣᠩᠭᠣᠯ ᠦᠨ ᠰᠢᠯᠢ ᠵᠢᠨ ᠭᠣᠣᠯ ᠠᠢᠮᠠᠭ ᠦᠨ ᠰᠢᠯᠣᠭᠣᠨ ᠬᠦᠬᠡ ᠬᠣᠰᠢᠭᠣᠨ ᠦ ᠰᠢᠭᠦᠬᠦ ᠬᠣᠷᠢᠶ᠎ᠠ

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
example below. Best regards: Otared %%% sidenotes, or footnotes in the margin %%% example given by Hraban: %%% here the tweaking of the width of the sidenote is turned off %%% remove the comment where there is \ColWidth %%% in order to adapt to your layout \showframe \setuplayout [cutspace

Re: [NTG-context] lmtx update

2020-08-01 Thread Otared Kavian
the layout >> is such that for instance the right margin takes 1/3 of the page width, then >> the footnotes would occupy the right margin, beginning at the top). > It depends on what you want. This works ok: > […] Hi Hans, That's great! Thanks a lot! I have two quest

Re: [NTG-context] Text around a figure

2020-07-16 Thread Fabrice Couvreur
, frame=off, location=always, ] \showframe \starttext \starttextbackground[fondpaille] \startplacefigure[number=no,location=right] \externalfigure[dummy] \stopplacefigure \startitemize[n] \dorecurse{3}{\startitem \input ward

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Fabrice Couvreur
t=0pt,width=max,frame=off] > \getinlineuserdata > \stopframedtext} > \stopsetups > > \showframe > \starttext > \startuserdata[margintext] > {\bf Remarque — }\input ward > \stopuserdata > \startuserdata[margintext] > \externalfigure[dummy][width=\rightma

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Taco Hoekwater
\stopframedtext} \stopsetups \showframe \starttext \startuserdata[margintext] {\bf Remarque — }\input ward \stopuserdata \startuserdata[margintext] \externalfigure[dummy][width=\rightmarginwidth] \stopuserdata \startchapter[title=First chapter] \dorecurse{2}{\input knuth} \stopchapter \stoptext > On 6

[NTG-context] Store images and text in the right margin

2020-07-02 Thread Fabrice Couvreur
={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Remarque — }\getinlineuserdata} \stopsetups \showframe \starttext \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=\rightmarginwidth]} \startchapter[title=First chapter

Re: [NTG-context] \hideframe to cancel \showframe

2020-06-30 Thread Mikael Sundqvist
On Tue, Jun 30, 2020 at 11:47 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Mikael Sundqvist schrieb am 30.06.2020 um 22:03: > > Hi, > > > > say that I, for educational purposes, want to use \showframe for a > > couple of pages, and t

Re: [NTG-context] \hideframe to cancel \showframe

2020-06-30 Thread Wolfgang Schuster
Mikael Sundqvist schrieb am 30.06.2020 um 22:03: Hi, say that I, for educational purposes, want to use \showframe for a couple of pages, and then want to hide the frames. What is the correct way of doing this? I have for now added a \begingroup and \endgroup, but then another document

[NTG-context] \hideframe to cancel \showframe

2020-06-30 Thread Mikael Sundqvist
Hi, say that I, for educational purposes, want to use \showframe for a couple of pages, and then want to hide the frames. What is the correct way of doing this? I have for now added a \begingroup and \endgroup, but then another document parameter that is set inside is cancelled after

Re: [NTG-context] margin comment above heading

2020-06-18 Thread Pablo Rodriguez
t; \setupinterlinespace[1sp] >>\stopsetups This was from a previous form of the sample. If the paragraph is really tiny, it would be easier not to have a page break between that paragraph and the >>\setupinteraction[state=start] >>\showframe\showgrid >>

Re: [NTG-context] margin comment above heading

2020-06-17 Thread Henning Hraban Ramm
; \setupinterlinespace[1sp] >> \stopsetups > > ??? > >> \setupinteraction[state=start] >> \showframe\showgrid >> \starttext >> \blank[force, 10em] >> \section{Move comment above this heading} >> \startparagraph[setups=tinytiny]

Re: [NTG-context] margin comment above heading

2020-06-17 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 16.06.2020 um 22:17: Dear list, I have the following sample: \startsetups[tinytiny] \setupwhitespace[-2em] \setupbodyfont[0.01pt] \setupinterlinespace[1sp] \stopsetups ??? \setupinteraction[state=start] \showframe\showgrid \starttext

Re: [NTG-context] (no subject)

2020-06-17 Thread Taco Hoekwater
fi} > > \setuppapersize [A10][A8] > \setuparranging [1*4*reversed] > \setuplayout[margin=0pt, width=fit] > > \showframe > > \starttext > \dorecurse{8}{\vbox to \textheight{\vfill\midaligned{\tfd ABC}\vfill}\page} > \stoptext > ``` > > imposition scheme i

[NTG-context] (no subject)

2020-06-17 Thread Malte Frank Gerdes
{#1}000\arrangedpageA % 4 \poparrangedpages \fi} \setuppapersize [A10][A8] \setuparranging [1*4*reversed] \setuplayout[margin=0pt, width=fit] \showframe \starttext \dorecurse{8}{\vbox to \textheight{\vfill\midaligned{\tfd ABC}\vfill}\page} \stoptext ``` imposition scheme

[NTG-context] margin comment above heading

2020-06-16 Thread Pablo Rodriguez
Dear list, I have the following sample: \startsetups[tinytiny] \setupwhitespace[-2em] \setupbodyfont[0.01pt] \setupinterlinespace[1sp] \stopsetups \setupinteraction[state=start] \showframe\showgrid \starttext \blank[force, 10em] \section{Move comment above

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Aditya Mahajan
another approach. This sample reflects my problem: \setupinteraction[state=start] %~ \showframe\showgrid \starttext \dorecurse{41}{one line\par} \ \comment[location={rightmargin}]{comment} \stoptext Since layers are problematic for the task, I insert the comments right after the text

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Pablo Rodriguez
. I need another approach. This sample reflects my problem: \setupinteraction[state=start] %~ \showframe\showgrid \starttext \dorecurse{41}{one line\par} \ \comment[location={rightmargin}]{comment} \stoptext Since layers are problematic for the task, I insert the comments right af

Re: [NTG-context] \pagewidth undefined?

2020-05-19 Thread Gerben Wierda
width (or \printpaperwidth) or one of the >> following methods. >> begin example >> \setupexternalfigures[location=default] >> \setuplayout[tight] >> \showframe >> \starttext >> \centerbox{\externalfigure[mill.png][width=\textwidth]} >> \page >>

Re: [NTG-context] \pagewidth undefined?

2020-05-19 Thread Hans Hagen
] \showframe \starttext \centerbox{\externalfigure[mill.png][width=\textwidth]} \page \centerbox{\externalfigure[mill.png][width=\paperwidth]} \page \centerbox{\externalfigure[mill.png][factor=max]} \page \centerbox{\externalfigure[mill.png][factor=min]} \stoptext end example \pagewidth etc

Re: [NTG-context] \pagewidth undefined?

2020-05-19 Thread Wolfgang Schuster
in details.pdf) I can't find \pagewidth in the current versison of details.pdf. As Pablo wrote you can use \paperwidth (or \printpaperwidth) or one of the following methods. begin example \setupexternalfigures[location=default] \setuplayout[tight] \showframe \starttext \centerbox{\externalfigure

Re: [NTG-context] What is required to make \setuplayout work?

2020-05-17 Thread Wolfgang Schuster
anything \showframe % this works \starttext \input knuth \stoptext Doesn’t seem to change the layout. What am I missing? You're changing the wrong values. What you have to change are the backspace, topspace, header and footer values. \setuplayout [backspace=5mm, width=middle, topspace=5mm

[NTG-context] What is required to make \setuplayout work?

2020-05-17 Thread Gerben Wierda
): \setuplayout[leftedge=5mm,top=5mm,rightedge=5mm,bottom=5mm, leftmargin=0mm,rightmargin=0mm, margindistance=0mm,edgedistance=0mm, topdistance=0mm,headerdistance=0mm,footerdistance=0mm,bottomdistance=0mm] \showlayoutcomponents % doesn’t seem to do anything \showframe % this works \starttext \input

[NTG-context] left protruding quotations

2020-05-14 Thread Michael Guravage
,11pt] \setupbodyfontenvironment[default][em=italic] \showframe \starttext \input tufte \quotation{We thrive in information||thick worlds} because of our marvelous and everyday capacity to select, edit, single out, structure, highlight, group, pair, merge, harmonize, synthesize, focus

Re: [NTG-context] Getting page width and height in Lua

2020-04-30 Thread Wolfgang Schuster
of the first argument in the two-argument version of \setuppapersize. Does anyone know how I can obtain these using Lua? You can use tex.dimen[...] or tex.dimen. but all values are in scaled points. \setuppapersize[A5][A4] \setuplayout[location=middle] \showframe \starttext \startluacode

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

2020-04-24 Thread Hans Hagen
local vectors = fonts.protrusions.vectors classes.myown = { vector = 'myown', factor = 1, } vectors.myown = table.merged (vectors.quality, { [0x0028] = { 1, 0 }, -- ( [0x0029] = { 0, 1 }, -- ) }) \stopluacode \starttext \showframe \definefontfeature[whatever][default

Re: [NTG-context] fun with frames and tables

2020-04-13 Thread Wolfgang Schuster
care about the other problems if I understand what’s going on with those boxes. Can you see where your left table is? \setuppapersize[A4][A3,landscape] \setuplayout[location=middle] \showframe \starttext \startframed[offset=overlay,width=max] \ruledvbox\bgroup \bTABLE[width=2cm

Re: [NTG-context] Float positioning

2020-04-06 Thread Tomas Hala
measures for special instance of figure. Best wishes, Tomáš %% \showframe \setupexternalfigures[location={local,default}] \definefloat[figpage][figure] \newdimen\myxx \newdimen\myht \newcount\mysp \def\myfig#1#2#3{% \myht=\makeupheight \setbox0=\hbox

Re: [NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Hans Hagen
[location=middle] \setuparranging [XY] \showframe \setupbodyfont [8pt] \def\somecontent#1{\startpagemakeup #1 \stoppagemakeup} \starttext \installpagebreakmethod{mojca} {\page \scratchcounterone \numexpr\rootlayouttargetparameter{nx}*\rootlayouttargetparameter{ny}\relax

Re: [NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Hans Hagen
[location=middle] \setuparranging [XY] \showframe \setupbodyfont [8pt] \def\somecontent#1{\startpagemakeup #1 \stoppagemakeup} \starttext % I want to mark the page with label numbers \setupheadertexts[1][1][1][1]% \dorecurse{50}{\somecontent{Label ONE}} % I want an actual page break here

[NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Mojca Miklavec
to achieve the same. Thank you, Mojca \setuppapersize [XY][A4] \setuppaper [topspace=10mm,backspace=10mm,dx=0mm,dy=0mm,nx=5,ny=13] \setuplayout [page] [topspace=2mm,backspace=2mm] \setuplayout [page] \setuplayout [location=middle] \setuparranging [XY] \showframe

Re: [NTG-context] \startquotation and citations

2020-03-26 Thread Wolfgang Schuster
it to the left (which can be done with \llap) %\definefontfeature[default][default][protrusion=quality] \definefontfeature[default][default][protrusion=punctuation] \setupalign[hanging] \showframe[text][text] \starttext xxx “xxx” \dontleavehmode\llap{“}xxx” \stoptext Wolfgang

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-25 Thread Rudolf Bahr
On Tue, Mar 24, 2020 at 07:29:26PM +0100, Wolfgang Schuster wrote: > > When you need the height for the layer offset you can use \dowithnextbox > because it hides \setbox etc. > > \definelayer[TextBox] > > \showframe[text][text] > > \starttext > > \dowithnextb

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Wolfgang Schuster
r offset you can use \dowithnextbox because it hides \setbox etc. \definelayer[TextBox] \showframe[text][text] \starttext \dowithnextbox {\setlayer [TextBox] [x=\the\dimexpr(\textwidth -\nextboxwd)/3\relax, y=\the\dimexpr(\textheight-\nextboxht)/3\relax] {\flushnextbox}} \hbox

Re: [NTG-context] Left hanging hyphen

2020-03-05 Thread Tomas Hala
,hanging] \showframe [text] [text] \starttext \hsize=1pt \mainlanguage [uk] {\bf uk} modro-zelený \hyphenatedpar{Stratford Stratford-upon-Avon} \mainlanguage [cz] {\bf cz} modro-zelený \hyphenatedpar{Stratford Stratford-upon-Avon} \mainlanguage [uk] {\bf uk

Re: [NTG-context] Left hanging hyphen

2020-03-04 Thread Tomas Hala
gpom{cz}\ifx\langpom\langpar\gdef\mylanguage{cs}\else\gdef\mylanguage{\langpar}\fi % \ORIGmainlanguage[\langpar] %} \setupalign [hanging] %\mainlanguage [cz] \showframe [text] [text] \starttext \hsize=0pt \mainlanguage [en] modro-zelený \mainlanguage [fr] modro-zelený \mainlanguage [cz]

Re: [NTG-context] body text invades space for notes

2020-03-04 Thread Jean-Pierre Delange
using lists in the same page. BTW, foonotes cannot be placed in the footer.     \showframe\showgrid     \setuppapersize[A9]     \starttext     \dorecurse{3}{%         text\footnote{note}\\}     \stoptext Sorry, but I’m afraid that I don’t know any way of debugging i

Re: [NTG-context] body text invades space for notes

2020-03-04 Thread Philipp A.
Note handling seems to have been improved in both LMTX and MkIV. A > side-effect of this new handling is the random clash between body and > notes texts when using lists in the same page. > > BTW, foonotes cannot be placed in the footer. > > \showframe\showgrid > \se

Re: [NTG-context] Left hanging hyphen

2020-03-02 Thread Wolfgang Schuster
efinebreakpoint [czcompound] [-] [nleft=3,nright=3,type=4] \startsetups [czech] \setbreakpoints [czcompound] \stopsetups \setuplanguage [cz] [setups=czech] \definefontfeature [default] [default] [protrusion=tomas_hala] \setupalign [hanging] \mainlanguage [cz] \showframe [text] [text] \st

[NTG-context] Left hanging hyphen

2020-03-02 Thread Tomas Hala
\mylanguage{cs} \appendtoks \ifx\mylanguage\currentlanguage \setbreakpoints[czcompound] \else \resetbreakpoints \fi \to\everylanguage \def\mylanguage{sk} \appendtoks \ifx\mylanguage\currentlanguage \setbreakpoints[czcompound] \else \resetbreakpoints \fi \to\everylanguage \starttext\showframe

[NTG-context] Nested quotation and left-hanging punctuation together?

2020-03-01 Thread Tomas Hala
][protrusion=quality,expansion=quality] \starttext\showframe \quotation{asdaf\quotation{asdfasfd} adfasdfasf} \quotation{asdaf\crlf\quotation{asdfasfd} adfasdfasf} \stoptext Without any command (#1--#3): Quotation symbols are ok but without hanging. With cmd #1: Quotation symbols are ok

Re: [NTG-context] body text invades space for notes

2020-02-25 Thread Pablo Rodriguez
hen using lists in the same page. BTW, foonotes cannot be placed in the footer. \showframe\showgrid \setuppapersize[A9] \starttext \dorecurse{3}{% text\footnote{note}\\} \stoptext Sorry, but I’m afraid that I don’t know any way of debugging it. Pablo > Am Sa., 14. Dez.

[NTG-context] Chapters, sections, usw

2020-02-24 Thread Jean-Pierre Delange
to print chapter titles. Thank you in advance for your help. JP See below the MWE : % \showframe %\showgrid \setuplanguage[fr][patterns={fr,agr}] \mainlanguage[fr] \setuppagenumbering[alternative=doublesided, location={header, inmargin}] \setupbodyfontenvironment[default][em=italic

Re: [NTG-context] margintext and floats in the margin

2020-01-31 Thread Jan Willem Flamma
[align=raggedright, > stack=yes, > location=outer, > style={\rm}] > > \showframe > \startbuffer[sine] > numeric u ; u = 5mm ; > draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u > withcolor transparent(1,.5,d

[NTG-context] margintext and floats in the margin

2020-01-29 Thread Otared Kavian
, location=outer, style={\rm}] \showframe \startbuffer[sine] numeric u ; u = 5mm ; draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u withcolor transparent(1,.5,darkblue) withpen pencircle scaled 2pt ; \stopbuffer \starttext This is s

Re: [NTG-context] checking whether file is landscape or portrait

2020-01-28 Thread Pablo Rodriguez
sizes. I thought there were malformed in such a way: \showframe \setuppapersize[A4][legal] \starttext \dorecurse{10}{\input{zapf}} \stoptext So my approach was: \setuplayout[page] \starttext \getfiguredimensions[a-test.pdf] \page[right]\dorecurse

Re: [NTG-context] columnset issues

2020-01-27 Thread Henning Hraban Ramm
WE shows better what’s going on: >> The "area" space is reserved as requested, but its contents get placed >> elsewhere. >> >> >> \usemodule[visual] >> \useMPlibrary[dum] >> \definecolor[fakerulecolor][gray] >> \setuplayout[

Re: [NTG-context] columnset issues

2020-01-27 Thread Wolfgang Schuster
elsewhere. \usemodule[visual] \useMPlibrary[dum] \definecolor[fakerulecolor][gray] \setuplayout[ grid=yes, ] \showframe[text] \showgrid \definecolumnset[Two][ n=2, page=no, ] %\definecolumnsetspan[TwoSpan][n=2] \definecolumnsetarea[AdSpace][ x=1,y=21, nx=1,ny=21, state=stop

Re: [NTG-context] columnset issues

2020-01-27 Thread Henning Hraban Ramm
y[dum] \definecolor[fakerulecolor][gray] \setuplayout[ grid=yes, ] \showframe[text] \showgrid \definecolumnset[Two][ n=2, page=no, ] %\definecolumnsetspan[TwoSpan][n=2] \definecolumnsetarea[AdSpace][ x=1,y=21, nx=1,ny=21, state=stop, frame=on, framecolor=magenta, ] \starttext

Re: [NTG-context] columnset issues

2020-01-26 Thread Henning Hraban Ramm
[ grid=yes, ] \showframe[text] \showgrid \definecolumnset[Two][ n=2, page=no, ] \definecolumnsetarea[AdSpace][ x=1,y=20, nx=1,ny=20, state=stop ] \starttext \startcolumnset[Two] \fakewords{20}{30} \setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45

[NTG-context] margintext and floats in the margin

2020-01-26 Thread Otared Kavian
, location=outer, style={\rm}] \showframe \startbuffer[sine] numeric u ; u = 5mm ; draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u withcolor transparent(1,.5,darkblue) withpen pencircle scaled 2pt ; \stopbuffer \starttext This is s

Re: [NTG-context] another columnset issue (solved)

2020-01-19 Thread Henning Hraban Ramm
a new page reliably, but I can’t reproduce it anymore. So, this works so far. I’m starting a new columnset for every chapter because I have chapters with 1-3 columns, the example is a simplification. HR \usemodule[visual] \setuppapersize[A5] \showframe[text] \definecolor[fakerulecolor][gray

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
. These issues get fixed with grid=yes. The original problem is also fixed in the MWE if I enable grid mode, there are just sometimes two blank lines instead of one. In my actual project I get one or zero lines. Couldn’t reproduce that in a MWE. \usemodule[visual] \setuppapersize[A5] \showframe[text

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

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

2020-01-17 Thread Tomas Hala
: # >Hi all, # > # >if I compile the following (minimised) code with ConTeXt from TL2017, # >I receive expected result -- one framed gray box with correct width. # > # >\starttext\showframe # >\defineframedtext[MPT][background=color,backgroundcolor=gray,width=\makeupwidt

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

2020-01-17 Thread Otared Kavian
On 17 Jan 2020, at 19:40, Wolfgang Schuster <wolfgang.schuster.li...@gmail.com> wrote:Tomas Hala schrieb am 17.01.2020 um 15:18:Hi all,if I compile the following (minimised) code with ConTeXt from TL2017,I receive expected result -- one framed gray box with correct width.\starttext\sho

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

2020-01-17 Thread Wolfgang Schuster
Tomas Hala schrieb am 17.01.2020 um 15:18: Hi all, if I compile the following (minimised) code with ConTeXt from TL2017, I receive expected result -- one framed gray box with correct width. \starttext\showframe \defineframedtext[MPT][background=color,backgroundcolor=gray,width=\makeupwidth

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

2020-01-17 Thread Tomas Hala
Hi all, if I compile the following (minimised) code with ConTeXt from TL2017, I receive expected result -- one framed gray box with correct width. \starttext\showframe \defineframedtext[MPT][background=color,backgroundcolor=gray,width=\makeupwidth,frame=on,offset=1cc,] \setuptyping[MP][before

Re: [NTG-context] issues with attachments

2019-12-27 Thread Hans Hagen
On 12/26/2019 9:05 PM, Rik Kabel wrote: On 12/18/2019 11:32, Pablo Rodriguez wrote: Hi Hans, I accidentally discovered that file attachment generates two entries in Acrobat, such as this sample: \setuppapersize[A5] \showframe \setupinteraction[state=start

Re: [NTG-context] issues with attachments

2019-12-26 Thread Rik Kabel
On 12/18/2019 11:32, Pablo Rodriguez wrote: Hi Hans, I accidentally discovered that file attachment generates two entries in Acrobat, such as this sample: \setuppapersize[A5] \showframe \setupinteraction[state=start] \setupinteractionscreen[option=attachment

Re: [NTG-context] Tent style cards

2019-12-22 Thread Pavneet Arora
llonius.103][width=2.0in]} \switchtobodyfont[nameface] \setlayer[tblplacecard][x=10em,y=3.0em]% {\tfg\it\color[orangered]{Vidya}} \flushlayer[tblplacecard] \stopbuffer \starttext \setupcolors[state=start] %%% 1. Show the frame and layout information. \showfram

Re: [NTG-context] Tent style cards

2019-12-21 Thread Pablo Rodriguez
\stopframedtext \stopbuffer \starttext %~ \showframe \rotate[rotation=180]{\getbuffer[tblcard]} \page \getbuffer[tblcard] \stoptext I hope it goes on time ;-), Pablo -- http://www.ousia.tk _

[NTG-context] Tent style cards

2019-12-21 Thread Pavneet Arora
buffer \starttext \showframe \adaptpapersize[tblcard,mirrored][letter,portrait]\getbuffer[tblcard] \page \getbuffer[tblcard] \stoptext -- Pavneet Arora m: +1 647-406-6843 Waroc Informatike: pavne

Re: [NTG-context] Layer presets / size of type area

2019-12-20 Thread Wolfgang Schuster
; > > \setuplayout[ > width=120mm, > backspace=16mm, > height=192mm, > topspace=6mm, > header=8mm, > footer=6mm, > ] > \showframe > > \definelayer[TA] > [x=16mm, y=14mm, > width=

[NTG-context] Layer presets / size of type area

2019-12-19 Thread Henning Hraban Ramm
, topspace=6mm, header=8mm, footer=6mm, ] \showframe \definelayer[TA] [x=16mm, y=14mm, width=\makeupwidth, height=\makeupheight] \setupbackgrounds[page][background=TA] \def\Square{\framed[width=1cm,height=1cm]{S}} \starttext \strut \setlayer[TA

[NTG-context] issues with attachments

2019-12-18 Thread Pablo Rodriguez
Hi Hans, I accidentally discovered that file attachment generates two entries in Acrobat, such as this sample: \setuppapersize[A5] \showframe \setupinteraction[state=start] \setupinteractionscreen[option=attachment] \starttext a\attachment[file=xml-mkiv.pdf, name

Re: [NTG-context] Very strange behaviour of itemize, \quotation and \dots

2019-12-17 Thread Hans Hagen
% begin file: bug-itemize-lmtx.tex \setupsynctex[stat=start] \setupsynctex[state=start] % if this is removed then everything is fine… \setupquotation[style=italic,left={«~},right={~»}] \showframe \starttext \startitemize[n] \dorecurse{4}{\item This item \quotation{is shown correcly\dots} \item

[NTG-context] Very strange behaviour of itemize, \quotation and \dots

2019-12-17 Thread Otared Kavian
\setupsynctex[stat=start] \setupsynctex[state=start] % if this is removed then everything is fine… \setupquotation[style=italic,left={«~},right={~»}] \showframe \starttext \startitemize[n] \dorecurse{4}{\item This item \quotation{is shown correcly\dots} \item This item \quotation{\dots is not shown

Re: [NTG-context] lmtx

2019-12-12 Thread Pablo Rodriguez
ument (using latest beta from 2019.12.12 13:15). \setuppapersize[A5] \showframe \setupinteraction[state=start] \setupinteractionscreen[option=attachment] \starttext a\attachment[file=xml-mkiv.pdf] \stoptext BTW, if I try to compile this with MkIV beta from 2019.12.12

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

2019-12-07 Thread Rik Kabel
)/(\dimexpr\lineheight+2.2ex\relax)\relax \thinrules[n=\number\scratchcounter,inbetween={\blank[2.2ex]}] \page } \showframe \starttext \dorecurse{2}{\input knuth.tex\par} \thinrulesfillpage \thinrulesfillpage \input ward.tex \thinrulesfillpage \stoptext On 7 Dec

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

2019-12-07 Thread Hans Hagen
\verticalstrut \vskip-.5\lineheight \leaders \hbox to \hsize{\blackrule[width=\hsize,height=1pt,depth=1pt,color=red]\strut} \vfilll \verticalstrut \vskip-1.5\lineheight \page \stoptexdefinition \showframe \starttext \dorecurse{2}{\input knuth.tex\par

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

2019-12-07 Thread Otared Kavian
\thinrules[n=\number\scratchcounter,inbetween={\blank[2.2ex]}] \page } \showframe \starttext \dorecurse{2}{\input knuth.tex\par} \thinrulesfillpage \thinrulesfillpage \input ward.tex \thinrulesfillpage \stoptext > On 7 Dec 2019, at 03:49, Rik Kabel wr

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

2019-12-06 Thread Rik Kabel
in the remainder of the page. That is, can one imagine a macro named (say) \fillpagewiththinrules which puts the exact number of thinrules before ejecting the page? Is this possible or have I to do it by hand for each page? \showframe \starttext \dorecurse{2}{\input knuth.tex\par} \thinrules[n=20

[NTG-context] Filling a page with \thinrules

2019-12-06 Thread Otared Kavian
a macro named (say) \fillpagewiththinrules which puts the exact number of thinrules before ejecting the page? Is this possible or have I to do it by hand for each page? \showframe \starttext \dorecurse{2}{\input knuth.tex\par} \thinrules[n=20] % On the first page I can put 20 thinrules \page

[NTG-context] hz / expansion

2019-12-02 Thread Hans Hagen
ep= .5, } classes.qualitya = { vector = "default", factor = 1, stretch = 4, shrink = 2, step= .5, } \stopluacode \showframe % \enabletrackers[*expansion] \setupbodyfont[dejavu,8pt] \defineexpansion [myexpansion] [s

[NTG-context] Fwd: Re: Spurious newlines at beginning of startstop pair

2019-11-28 Thread denis . maier . lists
o get rid of the empty line \definenarrower[whatever][left=1.5em] \definestartstop [cslreferences] [before={% \startwhatever[left] \setupindenting[-\leftskip,yes,first] \indentation \GetPar }, after=\stopwhatever] \showframe \starttext \section{Some title} \input ward \secti

Re: [NTG-context] Spurious newlines at beginning of startstop pair

2019-11-27 Thread Hans Hagen
`\definestartstop`? you need to get rid of the empty line \definenarrower[whatever][left=1.5em] \definestartstop [cslreferences] [before={% \startwhatever[left] \setupindenting[-\leftskip,yes,first] \indentation \GetPar }, after=\stopwhatever] \showframe \starttext \section

[NTG-context] Difference between direct use of quotation marks and \quotation

2019-11-22 Thread Tomas Hala
on outside the frame? Best wishes, Tomáš %%% MWE: \setupalign[hz,hanging] \definefontfeature [default] [default] [protrusion=quality, expansion=quality] \starttext\showframe one \hfill two \crlf „three“ four \par one \hfill two \crlf \quotation{three} four

[NTG-context] two issues with inmargin attachments

2019-11-20 Thread Pablo Rodriguez
Hi Hans, I have the following sample, using latest beta from 2019.11.14 17:07: \setuppapersize[A5] \showframe \setupinteraction[state=start] \setupinteractionscreen[option=attachment] \starttext a\attachment[file=xml-mkiv.pdf] b\attachment[file=mkiv

Re: [NTG-context] Difference in right justification in LMTX

2019-10-11 Thread Joseph Canedo
[mainfont][serif][EBGaramond][features=base] \setupalign[hanging, lesshyphenation, hz] \setupbodyfont[mainfont, 9pt] \showframe \starttext les bestes/ & sus toute la terre/ & sus tout reptile qui bouge sur surete sur la {\righttoleft terre. Dieu} donc crea l'homme a son image. \stoptext Than

[NTG-context] space between headings

2019-10-10 Thread Pablo Rodriguez
Dear list, I have the following sample: \showframe\showgrid \starttext \section{Section} \subsection{Subsection} A sentence. \section{Section} Another sentence. \subsection{Subsection} Even another sentence. \stoptext Is there any way to setup the space

[NTG-context] Column sets (span) & unwanted vertical gap

2019-10-01 Thread Procházka Lukáš Ing .
\setuphead[MyTit] [style=\bf,color=MyBlue, before={\blank[none]},after={\blank[none]},inbetween={\blank[none]},beforesection={BS},aftersection={AS}, page=no,%grid=yes, ] % %\showframe %\showboxes %\showlayout % \starttext \startcolumnset[example] \startcolumnsetspan[wide]

Re: [NTG-context] special book layout problem in ConTeXt

2019-09-21 Thread nicolas mondon
gt; mechanism but a separate document is easier)." > > > Step 1: > > Create a document with a very big left margin where you can place all > floats. > > \setuppapersize >[A3,landscape] > > \setuplayout >[backspace=23.5cm, > width=15cm,edge=14cm]

Re: [NTG-context] special book layout problem in ConTeXt

2019-09-19 Thread Wolfgang Schuster
ument is easier)." Step 1:  Create a document with a very big left margin where you can place all floats. \setuppapersize   [A3,landscape] \setuplayout   [backspace=23.5cm,    width=15cm,edge=14cm] \showframe \setupfloat   [default=leftedge,    minwidth=14cm] \starttext \

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Otared Kavian
extbackground[xx] >> \stoptextbackground >> >> can you try to use that instead? less page overflow too >> >> (actually i should iontegrate some title line in that) > A limitation of textbackgrounds is the limited control over the vertical > space at page brea

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Wolfgang Schuster
but with textbackgrounds you can just control the space at the end and end of the environment. \showframe[text][text] \starttext \dorecurse{3}{\samplefile{knuth}} \startbackground[topoffset=1em,bottomoffset=1em] \dorecurse{2}{\samplefile{knuth}} \stopbackground \dorecurse{2}{\samplefile{knuth}} \page

Re: [NTG-context] Overfull hbox issues: different font,

2019-09-04 Thread Wolfgang Schuster
of this mail or at https://gist.github.com/JulianGmp/fe20df633554f5aff02e02eb47a6780f The output PDF I got: https://i.imgur.com/c8S7Di5.png Best regards, Julian % Compiled document (screenshot): % https://i.imgur.com/c8S7Di5.png \setuppapersize[A4] \showframe \setuplayout[ topspace=1cm

[NTG-context] Overfull hbox issues: different font,

2019-09-03 Thread Julian G
/JulianGmp/fe20df633554f5aff02e02eb47a6780f The output PDF I got: https://i.imgur.com/c8S7Di5.png Best regards, Julian % Compiled document (screenshot): % https://i.imgur.com/c8S7Di5.png \setuppapersize[A4] \showframe \setuplayout[ topspace=1cm, header=0cm, width=16cm

[NTG-context] Different layout for specific pages

2019-08-23 Thread Stanislav Sokolenko
] \definelayout[smallheader][header=0.1\textheight] \setuplayout[smallheader] \definelayout[1][bigheader] \definelayout[2][smallheader] \starttext \showframe \input knuth \input knuth \input knuth \stoptext However, rather then having the big header only on page 1, I end up with it on every page except page 2

Re: [NTG-context] Captions with background

2019-08-04 Thread Hans Hagen
=footer, state=start] \setupfooter[strut=no] \useMPlibrary[dum] \showframe[frame=on] \dorecurse{10} { test \page[left] \setlayer [page] [x=-2mm, y=-2mm, preset=lefttop] {\externalfigure [bogus] [width=\dimexpr\paperwidth+2mm

Re: [NTG-context] (again) inmargin attachments in notes

2019-07-29 Thread Hans Hagen
On 7/29/2019 9:33 PM, Pablo Rodriguez wrote: Hi Hans, I have the following sample: \showframe\showgrid \setupinteraction[state=start] \setupinteractionscreen[option=attachment] \setupattachment[location=inmargin] \starttext a\attachment[file=xml-mkiv.pdf] b

[NTG-context] (again) inmargin attachments in notes

2019-07-29 Thread Pablo Rodriguez
Hi Hans, I have the following sample: \showframe\showgrid \setupinteraction[state=start] \setupinteractionscreen[option=attachment] \setupattachment[location=inmargin] \starttext a\attachment[file=xml-mkiv.pdf] b\footnote{\attachment[file=i-context.pdf]} \stoptext

Re: [NTG-context] background color, was: CMYK Color profile

2019-06-02 Thread Benjamin Koppe
paperwidth-2\measured{big}\relax] > > \definelayout > [fifthandsixth] > [first] > [backspace=\measure{big}, > width=\dimexpr\paperwidth-2\measured{big}\relax] > > %% We assign the layouts to the pages. > \definelayout [1] [first] > \definelayout [2] [second] &

Re: [NTG-context] background color, was: CMYK Color profile

2019-05-31 Thread Benjamin Koppe
! \showframe \setupbackgrounds[paper][background=color,backgroundcolor=blue] \starttext \starttitle[title={First page}] \input lorem \stoptitle \starttitle[title={Second page}] \input lorem \stoptitle \starttitle[title={Third page}] \input lorem \stoptitle \starttitle[title

Re: [NTG-context] Extend figure to margin, or extend figure from margin to text

2019-05-30 Thread Zhichu
table now, I'm still concerned that the settings are not logical (to a human being). I'm afraid that one day it won't work out like that. Here's the MWE: === \showframe \setuppagenumbering [alternative=doublesided] \definepapersize [911] [wid

[NTG-context] Extend figure to margin, or extend figure from margin to text

2019-05-29 Thread Zhichu
as the figure and the part in the margin should not affect other marginal notes: \showframe \starttext Hello\inright{Very very very long test notes.}, world! \startplacefigure [reference=fig:whatever, title={Test figure.}, location=outer] \hbox{% \framed

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