[NTG-context] Re: upload

2025-06-12 Thread Rik Kabel
.     \definelabel [X]     % [alternative=intext]     [alternative=inmargin]     \definemakeup [mkup]     [doublesided=no]     \starttext     \startmakeup [mkup]     abc\X[abc]\par     \ref[number][abc]\par     \stopmakeup     def\X[def]\par     \ref[number][def]\par     \Context\ version\par

[NTG-context] Re: upload

2025-06-12 Thread Wolfgang Schuster
] [alternative=inmargin] \definemakeup [mkup] [doublesided=no] \starttext \startmakeup [mkup] abc\X[abc]\par \ref[number][abc]\par \stopmakeup def\X[def]\par \ref[number][def]\par \Context\ version\par \contextversionnumber \stoptext https://www.mail

[NTG-context] Re: upload

2025-06-12 Thread Rik Kabel
. With alternative=intext, all is as expected. The counter is incremented in all cases. \definelabel [X] % [alternative=intext] [alternative=inmargin] \definemakeup [mkup] [doublesided=no] \starttext \startmakeup [mkup] abc\X[abc]\par \ref[number][abc]\par \stopmake

[NTG-context] \writetolist and horizontal mode

2025-03-13 Thread mf
those \writetolist introduced -- at least, this is the way I understand it -- horizontal mode, in a point where LMTX is in vertical mode. I solved it embedding those \writetolist inside \inmargin{} calls, so that the horizontal mode is activated, but out of the main text. The trick does the job, bu

[NTG-context] Re: How to prevent \reference[myrefA]{myrefA} from creating vertical emptiness?

2025-03-06 Thread Pablo Rodriguez via ntg-context
paragraph \inmargin{\reference[myrefA]{myrefA}}% \sidebarA BTW, add the reference just before sidebar (and not just after the paragraph). This way you won’t have issues if there is a page break just between the previous paragraph and the sidebar. I hope it help

[NTG-context] Re: margn text on makeup page -- how?

2025-02-27 Thread Rik Kabel
On 2025-02-27 15:22, Wolfgang Schuster wrote: Am 26.02.2025 um 18:08 schrieb Rik Kabel: On 2025-02-26 11:39, Wolfgang Schuster wrote: Am 26.02.2025 um 17:02 schrieb Rik Kabel: Is there a way to get margin text in a makeup page? The following example, modified by the addition of \inmargin

[NTG-context] Re: margn text on makeup page -- how?

2025-02-27 Thread Wolfgang Schuster
Am 26.02.2025 um 18:08 schrieb Rik Kabel: On 2025-02-26 11:39, Wolfgang Schuster wrote: Am 26.02.2025 um 17:02 schrieb Rik Kabel: Is there a way to get margin text in a makeup page? The following example, modified by the addition of \inmargin... from the wiki at https

[NTG-context] Re: margn text on makeup page -- how?

2025-02-26 Thread Rik Kabel
On 2025-02-26 11:39, Wolfgang Schuster wrote: Am 26.02.2025 um 17:02 schrieb Rik Kabel: Is there a way to get margin text in a makeup page? The following example, modified by the addition of \inmargin... from the wiki at https://wiki.contextgarden.net/Document_layout_and_layers/Makeup

[NTG-context] Re: margn text on makeup page -- how?

2025-02-26 Thread Wolfgang Schuster
Am 26.02.2025 um 17:02 schrieb Rik Kabel: Is there a way to get margin text in a makeup page? The following example, modified by the addition of \inmargin... from the wiki at https://wiki.contextgarden.net/Document_layout_and_layers/Makeup, results in no margin text in the makeup with either

[NTG-context] margn text on makeup page -- how?

2025-02-26 Thread Rik Kabel
Is there a way to get margin text in a makeup page? The following example, modified by the addition of \inmargin... from the wiki at https://wiki.contextgarden.net/Document_layout_and_layers/Makeup, results in no margin text in the makeup with either luatex or lmtx. \definepapersize[sheet

[NTG-context] Inmargin labels fail to be placed on makeup pages

2024-09-11 Thread Rik Kabel
Hello all, As the subject says, labels (\definelabel) with alternative=inmargin are not placed on makeup pages. (Left and right placement works.) The following example demonstrates this. (ConTeXt  ver: 2024.08.16 15:49 LMTX  fmt: 2024.8.16  int: english/english) \showframe

[NTG-context] Re: Alignments of margin notes

2024-08-02 Thread Wolfgang Schuster
g}}     \samplefile{lorem}     \margindata[\recursestring]{Text in the margin!}     \samplefile{lorem} } \doloopoverlist{     inleft,     inright,     inouter,     ininner,     inmargin,     inother, } {     %\setupmargindata[\recursestring][align=middle]     \setupmarginframed[\recursestring][align=middle]     \

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Gerion Entrup
you know the correct way? > >>>>> > >>>>> Here is a MWE: > >>>>> ``` > >>>>> \setuppagenumbering[location={footer, right}, alternative=doublesided] > >>>>> > >>>>> \definealign[myalign][i

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Wolfgang Schuster
[location={footer, right}, alternative=doublesided] \definealign[myalign][inner, nothyphenated] \setupmargindata[inmargin][ location=outer, style=italic, % nothing of that seems to have any effect % align=myalign, % align=inner, % align

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Gerion Entrup
ment is only correct at even pages. > >>> > >>> Do you know the correct way? > >>> > >>> Here is a MWE: > >>> ``` > >>> \setuppagenumbering[location={footer, right}, alternative=doublesided] > >>> > >>> \d

[NTG-context] placement of float captions in margin

2024-08-01 Thread Henning Hraban Ramm
, ] \setuppagenumbering[alternative=doublesided] \definemargindata[margincaption][inner][ margin=margin, %width=\innermarginwidth, align=flushleft, stack=yes, voffset=-.5em, ] \setupmarginframed[inmargin][ align={flushleft,low}, ] \definefloat[rightfigure][figure] \setupfloat[rightfigure][ default

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Wolfgang Schuster
text body. However, I did not get this to work. It hyphenates and the alignment is only correct at even pages. Do you know the correct way? Here is a MWE: ``` \setuppagenumbering[location={footer, right}, alternative=doublesided] \definealign[myalign][inner, nothyphenated] \setupmargindata[inmargin

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Gerion Entrup
ht}, alternative=doublesided] > > > > \definealign[myalign][inner, nothyphenated] > > \setupmargindata[inmargin][ > > location=outer, > > style=italic, > >% nothing of that seems to have any effect > > % align=myalign, > > % align=

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Wolfgang Schuster
the correct way? Here is a MWE: ``` \setuppagenumbering[location={footer, right}, alternative=doublesided] \definealign[myalign][inner, nothyphenated] \setupmargindata[inmargin][ location=outer, style=italic, % nothing of that seems to have any effect % align

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Gerion Entrup
Am Donnerstag, 1. August 2024, 15:36:57 MESZ schrieb Hans Hagen: > On 8/1/2024 2:50 PM, Taco Hoekwater wrote: > > Hi, > > > > Something seems wrong with the align processing inside \setupmargindata, > > because using a macro like > > > > \def\Inmargin#1

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Hans Hagen
On 8/1/2024 2:50 PM, Taco Hoekwater wrote: Hi, Something seems wrong with the align processing inside \setupmargindata, because using a macro like \def\Inmargin#1{\inmargin{\blank[-line]\startalignment[inner,nothyphenated]#1\stopalignment}} works ok (the \blank[-line] is a side-effect of

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Henning Hraban Ramm
Am 01.08.24 um 14:50 schrieb Taco Hoekwater: Something seems wrong with the align processing inside \setupmargindata, because using a macro like I also got the impression that something must be wrong from my experiments with inmargin captions (see my architectural guides article in the

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Taco Hoekwater
Hi, Something seems wrong with the align processing inside \setupmargindata, because using a macro like \def\Inmargin#1{\inmargin{\blank[-line]\startalignment[inner,nothyphenated]#1\stopalignment}} works ok (the \blank[-line] is a side-effect of using the environment inside a margin text

[NTG-context] Alignments of margin notes

2024-08-01 Thread Gerion Entrup
: ``` \setuppagenumbering[location={footer, right}, alternative=doublesided] \definealign[myalign][inner, nothyphenated] \setupmargindata[inmargin][ location=outer, style=italic, % nothing of that seems to have any effect % align=myalign, % align=inner, % align

[NTG-context] How to hide any content?

2024-07-25 Thread Joel via ntg-context
anything atall, and also trying to find ways to hide the “blank” contentthat gets rendered: \starteffect[hidden]\mymacro{}\stopeffect \color[white]{\mymacro} \setbox\scratchbox=\vbox{\mymacro} \startnointerference\mymacro\stopnointerference \inmargin{\mymacro} Thesesolutions either entire

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Luc Chabassier
mechanisms? >> I did, but as far as I know they place the text on the margin next to >> the \inmargin invocation in the text, so they may overlap, which is what >> I want to avoid. > > \setupmarginblocks[inbetween=] > > \starttext > > \dorecurse{100} >{\

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
xt to the \inmargin invocation in the text, so they may overlap, which is what I want to avoid. \setupmarginblocks[inbetween=] \starttext \dorecurse{100} {\bold{#1:} \samplefile{ward}% \startmarginblock Note #1\stopmarginblock \par} \stoptext Wol

[NTG-context] Re: Comments placed in the margin

2024-03-19 Thread Jean-Pierre Delange
Hi Jeroen, You can try this : \setupmargindata[inmargin][location=inner, style={\ssx\setupinterlinespace[line=2.8ex]}] \setupmarginframed[inmargin][align=left] Sorry if I send owls to Athens ! JP Le 19/03/2024 à 15:38, Jeroen a écrit : For comments that are placed in the margin, the

[NTG-context] Re: Comments placed in the margin

2024-03-19 Thread Wolfgang Schuster
: \setupmargindata[inmargin][style={\tf}] It does for me but but unless you want a certain style it is better to use a empty argument for the style key. \starttext \inmargin{Bold?}\samplefile{lorem} \setupmargindata[inmargin][style=] \inmargin{Bold?}\samplefile{lorem} \stoptext Wolfgang

[NTG-context] Re: Comments placed in the margin

2024-03-19 Thread Jeroen
This one unbolds the margin text: \setupmargindata[inouter][style=\tf] This one works well, it unbolds and reduces the size of the margin text: \setupmargindata [inouter] [style={\switchtobodyfont[8pt]}] This one does not seem to make a change: \setupmargindata[inmargin][style={\tf

[NTG-context] Re: Comments placed in the margin

2024-03-19 Thread Hraban Ramm
? Try \setupmargindata[inmargin][style={\tf}] I don’t know why the default is bold. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
=doublesided, location={header, inmargin}] \setupmargindata[inmargin][location=inner, style={\ssx\setupinterlinespace[line=2.8ex]}] \setupmarginframed[inmargin][align=right] \setupbodyfontenvironment[default][em=italic] % Use Theano Didot as Ancient Greek font \definefallbackfamily[mainface][serif

[NTG-context] Re: Issue with italics

2024-02-26 Thread Jean-Pierre Delange
=40mm] \setuppagenumbering[alternative=doublesided, location={header, inmargin}] \setupmargindata[inmargin][location=inner, style={setupinterlinespace[line=2.8ex]}] \setupmarginframed[inmargin][align=right] \setupbodyfontenvironment[default][em=italic] \definefallbackfamily[mainface][rm][Theano

[NTG-context] Re: Text in Margin

2024-02-19 Thread Henning Hraban Ramm
\inmargin, \inouter etc. Additional to Wolfgang’s suggestions: If you need sidefloats that cover not only the margin but should decrease the text width, you can move sidefloats into the margin like: \startplacefigure[title={},location=outer] \offset[rightoffset=-\marginwidth]{\externalfigure[cow

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-28 Thread Wolfgang Schuster
|<>| ##. SECTION TITLE paragraph ... . |<-->| margin ``` I wanted paragraph to begin on the same line the section title lies. \define[1]\SectionNumberCommand   {\margindata[inmargin]

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-27 Thread Pablo Rodriguez via ntg-context
SECTION TITLE paragraph > ... > . > > |<-->| > margin > ``` > I wanted paragraph to begin on the same line the section title lies. Hi Ali, from what I understand, you need both alternati

[NTG-context] Re: Section number in the margin and the section title followed by paragraph!

2024-01-27 Thread Wolfgang Schuster
ot; I just wanted to know if there already an option defined to achieve the desired result. \setuphead [subsection] [alternative=margin] %\setuphead [subsection] [alternative=inmargin] %\setuphead [subsection] [alternative=margintext] Wolfgang ___

[NTG-context] Re: LMTX: Command handling, Interface between TeX and Lua

2023-12-14 Thread Gerion Entrup
1]) > context('\\par') > context('Color chosen = ' .. named_values['color']) > context('\\par') > context('Curly braces = ' .. str) > context('\\par') > end > \stopluacode > > \def\mycommand[#1][#2]#

[NTG-context] Re: LMTX: Command handling, Interface between TeX and Lua

2023-12-13 Thread Bruce Horrocks
braces = ' .. str) context('\\par') end \stopluacode \def\mycommand[#1][#2]#3{\ctxlua{ userdata.mycommand('#1', '#2', [==[#3]==])}} \starttext \mycommand[top, inmargin, now][color=green, roof=gabled]{Anne of Green Gables?} \stoptext — Bruce Horrocks Hampshir

[NTG-context] Re: unwanted blank page

2023-11-19 Thread madiazm . eoicc
cters] %%% %%% NUMERACIÓN DE PÁGINAS, SETUP % %%% \setuppagenumbering[alternative=doublesided,location={footer,inmargin}] \setupuserpagenumber[way=byblock] \starttext \startsectionblock[po

[NTG-context] problems with comments

2023-09-21 Thread Henning Hraban Ramm
t; doesn’t help. The "author" setting is shown, but as soon as I click on the comment, it changes to my user name. (Might depend on the viewer, but I get the same behavior from Adobe and Apple.) "title" and "subtitle" settings are handled differently by viewers, t

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Henning Hraban Ramm
r the hood, I think there’s just a “reference” key missing in \attachment or \setupattachment: \setupinteraction[state=start] \starttext \samplefile{lorem} \attachment[ file={hacker.jpg}, title={Hacker}, symbol=Paperclip, author=Hans, location=inmargin, reference=foobar, ] As you ca

Re: [NTG-context] extra lines in PDF annotations

2023-03-14 Thread Pablo Rodriguez via ntg-context
ion[state=start] \startxmlsetups xml:text \xmlsetsetup{\xmldocument} {pre} {xml:copy:html} \stopxmlsetups \xmlregistersetup{xml:text} \startxmlsetups xml:copy:html \xmltobuffer{#1}{.}{text} \comment[location=inmargin,buffer=text]{} \stopxmlsetups \setuppapersize[A9

[NTG-context] extra lines in PDF annotations

2023-03-13 Thread Pablo Rodriguez via ntg-context
} \startxmlsetups xml:copy:html \xmltobuffer{#1}{.}{text} \comment[location=inmargin,buffer=text]{} \attachment[method=hidden, name=attach.xml, buffer=text] \null \stopxmlsetups If I save the XML file with Windows EOL chars (CR LF), I get extra blank lines in the PDF annotation

Re: [NTG-context] Curriculum example not working anymore (repost)

2023-02-24 Thread Jan-Erik Hägglöf via ntg-context
{{\bf #1}\inmargin{\it #2}\ (#3).\crlf {\bf #4}, #5.\blank[small]}} doesn’t work as expected. My modification \define[5]\EDUITEM{ \inleft{\bf #1} {{\it #2}\ (#3).\crlf {\bf #4}, #5.\blank[small]}} Then it seems to work as

[NTG-context] How to break margin notes across page breaks?

2022-11-15 Thread Joel via ntg-context
How can I allow margin text to break across the page breaks? I have a document with many \inmargin code. The problem I'm finding is that sometimes I have a lot of items in the margin. I hope this margin details can break across the page and continue onto the next page. The problem is inste

Re: [NTG-context] Quick way to proofread / check index entries?

2022-09-04 Thread Bruce Horrocks via ntg-context
ard and Mikael. For the benefit of the list I went with the following quick'n'dirty™ approach which will be good enough: \def\index{\dosingleempty\debugIndex} \def\debugIndex[#1]#2{% \iffirstargument \null% Ignore it for now \else \inmargin[color=blue,stack=yes,style=ssxx]{#2

[NTG-context] Line up itemize list with answer block

2022-08-23 Thread Jan Willem Flamma via ntg-context
    [counter=answer, text=, width=, before={\blank[nowhite]}, after={\blank[nowhite]}, indenting=no, titledistance=1cm,      location=inmargin, alternative=left, headstyle=, way=bychapter, prefixsegments=chapter, prefix=yes] \starttext \startch

[NTG-context] stacking of marginals

2022-05-31 Thread Henning Hraban Ramm via ntg-context
between stack=yes or no: \usemodule[visual] \useMPlibrary[dum] \setupmargindata[inmargin][stack=yes] \starttext \dorecurse{20}{% \fakewords{5}{30} \inmargin{\externalfigure[dummy\recurselevel][width=15mm,height=15mm]} \fakewords{5}{40}\par } \stoptext Hraban

Re: [NTG-context] About margin notes

2021-12-14 Thread Hans Hagen via ntg-context
=12cm,margin=2.5cm] \setupmargindata[inmargin][style={\tfx\em}, location=outer,align=flushouter] just use \inouter or define a new margindata class (see typo-mar.mkxl line 360 etc to see what is defined in what way) \starttext \chapter{Introduction} \input{tufte} \input{tufte}\inmargin{This is

[NTG-context] About margin notes

2021-12-14 Thread MANUEL GONZALEZ SUAREZ via ntg-context
Hi all: I send this minimal example: \mainlanguage [es] \definefontfamily [mainface] [serif] [Gentium] \setupbodyfont[mainface] \setuppagenumbering[alternative=doublesided, location={footer,right}] \setuplayout[textwidth=12cm,margin=2.5cm] \setupmargindata[inmargin][style={\tfx\em}, location

Re: [NTG-context] Footnotes in margins

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
What am I missing? > > \starttext > \inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2.} > \stoptext > > ConTeXt version: 2021.11.13 > > Regards > > Marcus Vinicius > -- > Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o > corpo nem seus membros, por s

Re: [NTG-context] Footnotes in margins

2021-11-16 Thread Taco Hoekwater via ntg-context
Hi, Like Hraban said, inserts are generally tricky and they tend to disappear when used inside other elements like floating objects / boxes / tables. However, ConTeXt has an easy way out at least for your case: \starttext \startpostponingnotes \inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2

Re: [NTG-context] Footnotes in margins

2021-11-16 Thread Henning Hraban Ramm via ntg-context
> Am 16.11.2021 um 12:57 schrieb Marcus Vinicius Mesquita via ntg-context > : > > Dear list, > > When running the MWE below, the first footnote does not appear. > What am I missing? > > \starttext > \inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2.} > \stopt

[NTG-context] Footnotes in margins

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
Dear list, When running the MWE below, the first footnote does not appear. What am I missing? \starttext \inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2.} \stoptext ConTeXt version: 2021.11.13 Regards Marcus Vinicius -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o

Re: [NTG-context] marginals from footnotes

2021-10-20 Thread Henning Hraban Ramm via ntg-context
w that in tex 'all is possible' somehow Yes, but I didn’t want to assume too much, and since inserts are tricky... > >> \starttext >> \samplefile{tufte}\inmargin{margin note} >> bla\footnote{footnote\inmargin{margin note from footnote}} bla >> \stoptext > \startt

Re: [NTG-context] marginals from footnotes

2021-10-20 Thread Hans Hagen via ntg-context
footnotes. Actually, marginals in footnotes are never displayed. Maybe I shouldn’t expect it to work, but I’d like to have this... Is it possible? you should know by now that in tex 'all is possible' somehow \starttext \samplefile{tufte}\inmargin{margin note} bla\footnote{footnot

[NTG-context] marginals from footnotes

2021-10-19 Thread Henning Hraban Ramm via ntg-context
. Maybe I shouldn’t expect it to work, but I’d like to have this... Is it possible? \starttext \samplefile{tufte}\inmargin{margin note} bla\footnote{footnote\inmargin{margin note from footnote}} bla \stoptext Hraban

Re: [NTG-context] Headline with numbers in margin doubleside layout

2021-09-14 Thread juh via ntg-context
Thanks a lot Wolfgang for your help, Am Mon, Sep 13, 2021 at 01:33:36PM +0200 schrieb Wolfgang Schuster via ntg-context: > Like this? > > \setuphead >   [chapter] >   [page=yes, >    alternative=inmargin, >    location=outer, >    align=outer] > > \setup

Re: [NTG-context] Headline with numbers in margin doubleside layout

2021-09-13 Thread Wolfgang Schuster via ntg-context
? \setuphead   [chapter]   [page=yes,    alternative=inmargin,    location=outer,    align=outer] \setuppagenumbering   [alternative=doublesided] \showframe \starttext \dorecurse{10}{\expanded{\chapter{Chapter \convertnumber{word}{\recurselevel \stoptext Wolfgang

Re: [NTG-context] numbered exercises

2021-08-24 Thread Henning Hraban Ramm via ntg-context
Here’s what I have now (result attached): \define[1]\ÜbungNrCmd{\inmargin{\offset[y=3em]{\rotate[rotation=90]{\SectionFont #1 \defineenumeration[Übung][ text=Übung, title=yes, titleleft=, titleright=, titledistance=-1em, titlestyle=\SectionFont, %numberstyle=\SectionFont

Re: [NTG-context] double-sided page number placement

2021-07-12 Thread Hans Hagen
quot; behaves as you expect using LMTX. Using MKIV with the current latest, there is no difference between "location=inright" and "location=inmargin". I don’t know whether this is intended or not. I hope it might help, the next version fixes it (t

Re: [NTG-context] double-sided page number placement

2021-07-12 Thread Charles Doherty
rginwidth>\zeropoint \page_layouts_right_margin_element\c!lefttext\c!leftstyle\c!leftcolor\c!leftwidth\zerocount \fi \ifdim\rightedgewidth>\zeropoint \page_layouts_right_edge_element\c!lefttext\c!leftstyle\c!leftcolor\c!leftwidth \fi}} \protect With this both inright and i

Re: [NTG-context] double-sided page number placement

2021-07-11 Thread Pablo Rodriguez
LMTX. Using MKIV with the current latest, there is no difference between "location=inright" and "location=inmargin". I don’t know whether this is intended or not. I hope it might help, Pablo -- http://www.ousia.tk

[NTG-context] double-sided page number placement

2021-07-11 Thread Charles Doherty
Dear Hans, The following file: \setuplayout[location=doublesided] \setuppagenumbering[location=inmargin,alternative=doublesided] \starttext \dorecurse{20}{\input knuth } \stoptext using: > ConTeXt ver: 2021.04.21 11:39 LMTX fmt: 2021.7.11 int: english/english the left page of the dou

Re: [NTG-context] Formulanumbers in margin

2021-03-23 Thread Adam Reviczky
ue as I can perfectly place text with \inmargin > directly, just not with the numbercommand. > > MWE: > > \starttext > \setuplayout[margin=2cm, leftmargin=2cm, rightmargin=2cm] > > \showframe > \showlayout > > \setupcaption[figure][location={rightmargin}] > \startp

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
Thanks Hraban, That should be fine, I've tried to increase the margins as well, but not sure that's the issue as I can perfectly place text with \inmargin directly, just not with the numbercommand. MWE: \starttext \setuplayout[margin=2cm, leftmargin=2cm, rightmargin=2cm] \showframe \

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
viczky : > > > > % this makes the formulanumber disappear > > % \setupformulas[location={rightmargin}] > > No, \setupformula’s location understands only left and right. > > Try something like: > > \define[1]\MyFormulaNumber{\inmargin{#1}} > > \setupf

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Henning Hraban Ramm
> Am 21.03.2021 um 19:40 schrieb Adam Reviczky : > > % this makes the formulanumber disappear > % \setupformulas[location={rightmargin}] No, \setupformula’s location understands only left and right. Try something like: \define[1]\MyFormulaNumber{\inmargin{#1}} \

Re: [NTG-context] \blackrule and margin

2021-02-19 Thread Hans Hagen
,rulethickness=1pt,width=fit] \starttext \inmargin[][topframe=on,bottomframe=on,rulethickness=1pt,width=fit]{Me} \startformula a^n + b^n = c^n. \stopformula \blank[3*big] \MyInMargin{You} \startformula a^n + b^n = c^n. \stopformula \stoptext

Re: [NTG-context] tikzpicture in margin

2021-02-15 Thread Hans Hagen
red a truly             marvelous proof ...  but             this margin is too narrow             to contain it.} \input{lorem} \inmargin{\externalfigure[cow] [width=\marginwidth]} % The above works. % The following does not: \input{lorem} \inmargin{ \starttikzpicture   \draw[gray] (-2,0) grid

Re: [NTG-context] tikzpicture in margin

2021-02-14 Thread Aditya Mahajan
argintext{I have discovered a truly >             marvelous proof ...  but >             this margin is too narrow >             to contain it.} > \input{lorem} > \inmargin{\externalfigure[cow] [width=\marginwidth]} > % The above works. > % The following does not: > \input{lorem} > \

[NTG-context] tikzpicture in margin

2021-02-14 Thread Jigé
arrow             to contain it.} \input{lorem} \inmargin{\externalfigure[cow] [width=\marginwidth]} % The above works. % The following does not: \input{lorem} \inmargin{ \starttikzpicture   \draw[gray] (-2,0) grid (2,2) ;   \draw plot [domain=-2:2, samples=50, smooth] (\x,{\x * \x}); \stoptikzpi

Re: [NTG-context] tikzpicture in margin

2021-02-14 Thread Henning Hraban Ramm
gt; \margintext{I have discovered a truly > marvelous proof ... but > this margin is too narrow > to contain it.} > \input{lorem} > \inmargin{\externalfigure[cow] [width=\marginwidth]} > % The above works. > % The following does not: > \input{lorem}

Re: [NTG-context] font rendering in bibliography

2020-10-28 Thread Xenos Athenaios
\setuplanguage[fr][patterns={fr,agr}] \mainlanguage[fr] \setcharacterspacing[frenchpunctuation] \setuplayout [backspace=40mm] \setuppagenumbering[alternative=doublesided, location={header, inmargin}] \setupmargindata[inmargin][location=inner, style={\ssx\setupinterlinespace[line=2.8ex

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Wolfgang Schuster
nment[frontpart] \setupheader[state=stop] \stopsectionblockenvironment 5. Style and position page numbers differently in the front and body matter (e.g., centered only in the front matter). Alignment only (style comes with the proper option 😉): \setuppagenumbering[location={b

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Pablo Rodriguez
, centered only in the front matter). Alignment only (style comes with the proper option 😉): \setuppagenumbering[location={bottom, inmargin}] \startsectionblockenvironment[frontpart] \setuppagenumbering[location={bottom, centered}] \stopsectionblockenvironment > As my full docu

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

2020-08-01 Thread Otared Kavian
space=7cm, width=middle, margin=5cm, margindistance=7mm] %\def\ColWidth{57mm} \setupmargindata[inmargin] [location=right, stack=continue, align=flushright, ] \setupmargindata[inouter] [location=right, stack=continue,

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

2020-08-01 Thread Otared Kavian
es one cannot avoid them). > > One essential bit is missing in the wiki example: > > \setupmargindata[inmargin][ > location=right, > stack=continue, % !! > align=flushright, > ] > > The code I’m actually using for our German literature magazine “Kritische >

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

2020-08-01 Thread Henning Hraban Ramm
to each other (indeed it is not > a good habit to have long notes, but in some cases one cannot avoid them). One essential bit is missing in the wiki example: \setupmargindata[inmargin][ location=right, stack=continue, % !! align=flushright, ] The code I’m actually using for our Ge

Re: [NTG-context] pagecolumns: get the current column

2020-06-26 Thread Hans Hagen
he extra information overlapping the main text in the other column. I found a useful counter in page-pcl.mkiv: \c_page_col_current. Here's a MWE: \unprotect \def\curCol{\c_page_col_current} \protect \def\InfoInMargin#1{\doifelse{\the\curCol}{1}{\inmargin{#1}}{\inothermargin{#1}}} \def\TestTe

[NTG-context] pagecolumns: get the current column

2020-06-26 Thread mf
the main text in the other column. I found a useful counter in page-pcl.mkiv: \c_page_col_current. Here's a MWE: \unprotect \def\curCol{\c_page_col_current} \protect \def\InfoInMargin#1{\doifelse{\the\curCol}{1}{\inmargin{#1}}{\inothermargin{#1}}} \def\TestText{\InfoInMargin{\bf \the\curCol}\

Re: [NTG-context] issue with \comment

2020-06-16 Thread Pablo Rodriguez
rry, Wolfgang, I discovered after reporting the issue that inmargin comments need to be in horizontal mode. Many thanks for your help and sorry for the noise, Pablo -- http://www.ousia.tk ___ If your question is of interes

Re: [NTG-context] errors in margindata?

2020-06-07 Thread Wolfgang Schuster
Use of \typo_margins_data_yes doesn't match its definition l.9 \margindata{ text1}% One has to use \margindata[]{test} to avoid the error. \margindata expects the name of the instance (e.g [inmargin]) as first argument which is missing in your example. This means \inmargin{...} is

[NTG-context] Chapters, sections, usw

2020-02-24 Thread Jean-Pierre Delange
ve 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=i

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
head  [chapter][   style=\tfc\HeadFont,   page=yes,   separator=,   numbercolor=darkgray,   alternative=inmargin, before=\directsetup{chapter:epigraph}, after={\resetshownsyno

[NTG-context] two issues with inmargin attachments

2019-11-20 Thread Pablo Rodriguez
-publications.pdf] c\attachment[file=onandon.pdf, location=inmargin] d\attachment[file=notnow.pdf, location=inmargin] e\attachment[file=about.pdf, location=text] f\attachment[file=i-context.pdf, location=text] \stoptext The default location seems to be "text"

Re: [NTG-context] \setuppagenumbering doublesided generates blank pages

2019-10-30 Thread Wolfgang Schuster
,inmargin}] \starttext \startchapter[title={October 2000}] Blah One \stopchapter \startchapter[title={November 2000}] Blah Two \stopchapter \stoptext This produces a PDF in TeXworks containing 4 pages: * Page 1 with a header an 'October 2000' header and 'Blah One' con

[NTG-context] \setuppagenumbering doublesided generates blank pages

2019-10-30 Thread Kerry Sainsbury
Hi there, I am a newbie, and have *seem* to have discovered that \setuppagenumbering [alternative=doublesided] generates a blank page between chapters. \setupheadertexts[chapter] \setuppagenumbering [alternative=doublesided,location={header,inmargin}] \starttext \startchapter[title={October

Re: [NTG-context] notes in the margin

2019-10-04 Thread Henning Hraban Ramm
those two together, but it didn’t work \setupmargindata[inmargin][ location=right, stack=continue, align=flushright, style={\switchtobodyfont[6pt]}, ] \setupmargindata[inouter][ location=right, stack=continue, align=flushright, style={\switchtobodyfont[6pt]}, ] \def\FNVOffset{0

Re: [NTG-context] notes in the margin

2019-10-03 Thread Andres Conrado Montoya
d to understand the options that would allow me to move them up or down, according to the Wiki (https://wiki.contextgarden.net/Command/inmargin), but they don't seem to do anything, or I don't understand how to work with them. But if there is actually a way to manually instruct \inmarg

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

2019-07-30 Thread Pablo Rodriguez
On 7/29/19 10:27 PM, Hans Hagen wrote: > On 7/29/2019 9:33 PM, Pablo Rodriguez wrote: > [...] > b\footnote{x\inleftmargin[scope=local]{\attachment[location=high,file=i-context.pdf]}} Many thanks for your reply, Hans. I didn’t know that placing margin data in notes was so complex. Many thanks for

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

[NTG-context] noindent vs noindentation in strc-con

2019-07-12 Thread Aditya Mahajan
basically boils down to the difference between: \showboxes \starttext \noindent \inmargin{Example 1} \startitemize \item This is how enumeration works. \stopitemize \inmargin{Example 2} \startitemize \item This works correctly \stopitemize \stoptext Note that the first example has an extra

Re: [NTG-context] several blocks of text in the margin

2019-05-01 Thread Henning Hraban Ramm
\setupmargindata[inright][stack=continue] might help, but the mechanism changed within the last few months: while it previously worked automagically in most cases, I had to shift several margin notes in my project using \inmargin[voffset=...]{...} Greetlings, Hraban --- https://www.fiee.net

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

2019-04-22 Thread Axel Kielhorn
that? > > I have a workaround for that: > > \title{\xmltext{#1}{/pnr} \xmltext{#1}{/pname}} > > And in your preamble: > > \setupheadertexts[title][\date] > \setuphead[title] >[placehead=empty, > before=, > after=, > page=,] > &

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

2019-04-22 Thread Pablo Rodriguez
e than one docan, but I > only get the „, “ > > \startxmlsetups xml:psoutdoc > %\inmargin{\xmltext{#1}{/docan} $\Leftarrow$} {\bf > \xmltext{#1}{/docnr}}\xmlflush{#1} > \inmargin{\xmlconcat{#1}{/docan}{, } $\Leftarrow$} {\bf > \xmltext{#1}{/docnr}}\xmlflush{#1} > \xmlsav

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

2019-04-21 Thread Axel Kielhorn
may be more than one docan, but I only get the „, “ \startxmlsetups xml:psoutdoc %\inmargin{\xmltext{#1}{/docan} $\Leftarrow$} {\bf \xmltext{#1}{/docnr}}\xmlflush{#1} \inmargin{\xmlconcat{#1}{/docan}{, } $\Leftarrow$} {\bf \xmltext{#1}{/docnr}}\xmlflush{#1} \xmlsave{#1}{outfile.xml

Re: [NTG-context] issue with symbol in attachments

2019-03-25 Thread Pablo Rodriguez
nly one attachment is shown in each margin. It seems to be the last one. I have just discovered it accidentally: \setupinteraction[state=start] \starttext one\attachment[file=onandon, location=inmargin] two (actually)\attachment[file=notnow, location=inmargin]% \attachment[fi

  1   2   3   4   5   6   7   >