ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with \inouter and text justification
@ 2015-12-08 22:03 josephcanedo
  2015-12-10 10:04 ` josephcanedo
  0 siblings, 1 reply; 6+ messages in thread
From: josephcanedo @ 2015-12-08 22:03 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 663 bytes --]

Dear all,


I am trying to add margin notes and for some reason I do not understand when having them in the main text, the main text which normally would be fully justified (without notes) is now aligned to left, but right side is erratic. I attach a simple MWE showing this.


If you disable the notes uncommenting the no op versions of \R and \N macros the text is perfectly justified. 


Any hint on what I am doing wrong or some solution to avoid this please?


Another question would be how to make the margin content always aligned to left please (even if the used margin is the left one) ? 


Many thanks


Best regards


Joseph Canedo

[-- Attachment #1.2: Type: text/html, Size: 1845 bytes --]

[-- Attachment #2: margin_mwe.tex --]
[-- Type: application/octet-stream, Size: 1428 bytes --]

\setuppapersize[A5][A5]

% computed from lua in document (large right margin)
\setuplayout[grid=both,edge=0sp,footer=0sp,edgedistance=0sp,margindistance=280166.5sp,footerdistance=0sp,backspace=1837977.5826sp,rightmargin=5951077.8304sp,leftmargin=1277644.5826sp,height=33829095.45sp,header=1015678.5sp,headerdistance=507839.25sp,width=18407373.087sp,topspace=760715.01666667sp]

\setupmargindata[outer][stack=continue, align=inner]

\setupbodyfont[schola, 8pt]

% margin notes, text not justified
\def\R#1{\inouter{#1}}
\def\N#1#2{\high{#1}\R{#1 #2}}

% when uncommented margin notes are gone, text justified
% \def\R#1{}
% \def\N#1#2{}

\starttext

\R{Luc.1.c}Or la nativite de Jesus Christ estoit telle. Car comme Marie mere d'iceluy fut espousee a Joseph : devant 
qu'ilz \N{h*}{ou/ fussent en mesnage}convinssent/ elle fut trouvee \N{i*}{Grec/ ayant au ventre}enceincte du sainct esprit. 
Et Joseph son mary/ estant juste/ & ne
voulant point la diffamer/ la voulut secretement \N{k*}{c'est) repudier}laisser. Mais comme iceluy pensoit ces choses/ voicy \N{l*}{Ange: c'est/ messager}l'ange du
Seigneur s'apparut a luy en son songe/ disant : Joseph filz de David/ ne crains a recevoir Marie ta femme : car
ce qui est \N{m*}{ou/ nay}conceu en elle/ est du sainct Esperit. Or enfantera elle ung filz/ & appelleras son nom \R{Jesus/ pourquoy est il ainsi appelle.}Jesus : car
iceluy sauvera son peuple de leurs pechez.

\stoptext

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-22  8:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-08 22:03 Problem with \inouter and text justification josephcanedo
2015-12-10 10:04 ` josephcanedo
2015-12-11 12:13   ` Wolfgang Schuster
2015-12-11 20:03     ` josephcanedo
2015-12-15 20:58       ` josephcanedo
2016-01-22  8:45         ` josephcanedo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).