.
\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
]
[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
.
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
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
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
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
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
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
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
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
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
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]
\
you know the correct way?
> >>>>>
> >>>>> Here is a MWE:
> >>>>> ```
> >>>>> \setuppagenumbering[location={footer, right}, alternative=doublesided]
> >>>>>
> >>>>> \definealign[myalign][i
[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
ment is only correct at even pages.
> >>>
> >>> Do you know the correct way?
> >>>
> >>> Here is a MWE:
> >>> ```
> >>> \setuppagenumbering[location={footer, right}, alternative=doublesided]
> >>>
> >>> \d
,
]
\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
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
ht}, alternative=doublesided]
> >
> > \definealign[myalign][inner, nothyphenated]
> > \setupmargindata[inmargin][
> > location=outer,
> > style=italic,
> >% nothing of that seems to have any effect
> > % align=myalign,
> > % align=
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
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
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
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
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
:
```
\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
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
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}
>{\
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
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
:
\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
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
?
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
=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
=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
\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
|<>|
##. SECTION TITLE paragraph
...
.
|<-->|
margin
```
I wanted paragraph to begin on the same line the section title lies.
\define[1]\SectionNumberCommand
{\margindata[inmargin]
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
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
___
1])
> context('\\par')
> context('Color chosen = ' .. named_values['color'])
> context('\\par')
> context('Curly braces = ' .. str)
> context('\\par')
> end
> \stopluacode
>
> \def\mycommand[#1][#2]#
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
cters]
%%%
%%% NUMERACIÓN DE PÁGINAS, SETUP %
%%%
\setuppagenumbering[alternative=doublesided,location={footer,inmargin}]
\setupuserpagenumber[way=byblock]
\starttext
\startsectionblock[po
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
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
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
}
\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
{{\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
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
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
[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
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
=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
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
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
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
> 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
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
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
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
. 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
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
?
\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
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
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
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
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
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
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
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
\
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
> 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}}
\
,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
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
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}
> \
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
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}
\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
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
, 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
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,
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
>
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
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
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}\
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
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
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
head [chapter][
style=\tfc\HeadFont,
page=yes,
separator=,
numbercolor=darkgray,
alternative=inmargin,
before=\directsetup{chapter:epigraph},
after={\resetshownsyno
-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"
,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
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
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
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
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
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
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
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
\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
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=,]
>
&
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
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
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 - 100 of 688 matches
Mail list logo