Hello everyone, The document https://drive.google.com/file/d/0B-mkD83s36jbREZmbGdPaGVHUDg/view?usp=sharin... shows what I would do at the place reserved for the text and that reserved for comments, ratings ... Must use two columns or predefine the dimensions of the paper ? thanks, Fabrice
Fabrice Couvreur mailto:fabrice1.couvreur@gmail.com 15. Juli 2016 um 13:17 Hello everyone, The document https://drive.google.com/file/d/0B-mkD83s36jbREZmbGdPaGVHUDg/view?usp=sharin... shows what I would do at the place reserved for the text and that reserved for comments, ratings ... Must use two columns or predefine the dimensions of the paper ? Change the layout of the page, the blue boxes are margin texts.
\setuplayout [width=13cm, rightmargin=5cm] \showframe \starttext \page[dummy] \stoptext Wolfgang
Hi Wolfgang,
Thank you. Now I want the figures or boxes with text are automatically
placed in the right margin. Is this the best way ?
How have justified text in the boxes ?
Fabrice
########################################################
\useMPlibrary [dum]
\setuplayout
[width=13cm,
rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={rightmargin,none}]
\setupframed
[frame=on,
width=\rightmarginwidth,
align=flushleft,
location=low,
rulethickness=1pt,
framecolor=blue,
corner=00]
\starttext
\showframe
\placerecipe{}{\externalfigure [dummy] [width=\rightmarginwidth]}
\placerecipe{}{\framed{La vie n'est pas un long fleuve tranquille !}}
\stoptext
#######################################################
2016-07-15 13:26 GMT+02:00 Wolfgang Schuster
Fabrice Couvreur
15. Juli 2016 um 13:17 Hello everyone, The document https://drive.google.com/file/d/0B-mkD83s36jbREZmbGdPaGVHUDg/view?usp=sharin... shows what I would do at the place reserved for the text and that reserved for comments, ratings ... Must use two columns or predefine the dimensions of the paper ? Change the layout of the page, the blue boxes are margin texts.
\setuplayout [width=13cm, rightmargin=5cm]
\showframe
\starttext \page[dummy] \stoptext
Wolfgang
___________________________________________________________________________________ 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
___________________________________________________________________________________
Hi Fabrice, You can give an option to \framed, as in: \placerecipe{}{\framed[align=justify,offset=2pt]{La vie n'est pas un long fleuve tranquille !}} You may also (in the above example) replace « fleuve » by « fleu||ve » in order to get a hyphenation. Best regards: OK
On 15 Jul 2016, at 16:19, Fabrice Couvreur
wrote: Hi Wolfgang, Thank you. Now I want the figures or boxes with text are automatically placed in the right margin. Is this the best way ? How have justified text in the boxes ? Fabrice
######################################################## \useMPlibrary [dum]
\setuplayout [width=13cm, rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat [recipe] [figure]
\setupfloat [recipe] [default={rightmargin,none}]
\setupframed [frame=on, width=\rightmarginwidth, align=flushleft, location=low, rulethickness=1pt, framecolor=blue, corner=00]
\starttext
\showframe
\placerecipe{}{\externalfigure [dummy] [width=\rightmarginwidth]}
\placerecipe{}{\framed{La vie n'est pas un long fleuve tranquille !}}
\stoptext #######################################################
2016-07-15 13:26 GMT+02:00 Wolfgang Schuster
: Fabrice Couvreur 15. Juli 2016 um 13:17
Hello everyone, The document https://drive.google.com/file/d/0B-mkD83s36jbREZmbGdPaGVHUDg/view?usp=sharin... shows what I would do at the place reserved for the text and that reserved for comments, ratings ... Must use two columns or predefine the dimensions of the paper ? Change the layout of the page, the blue boxes are margin texts.
\setuplayout [width=13cm, rightmargin=5cm]
\showframe
\starttext \page[dummy] \stoptext
Wolfgang
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Hi Kavian (your first name ?)
Thank you for your suggestion but it is still a little problem: why the
baseline of the framed is the third A and not the first ?
thank you,
Fabrice
\useMPlibrary [dum]
\setuplayout
[width=13cm,
rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={rightmargin,none}]
\setupframed
[frame=on,
width=\rightmarginwidth,
align=justify,
offset=2pt,
location=low,
rulethickness=1pt,
framecolor=darkred,
corner=00]
\starttext
\showframe
A\\A\\A
\placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
\stoptext
2016-07-15 18:51 GMT+02:00 Otared Kavian
Hi Fabrice,
You can give an option to \framed, as in:
\placerecipe{}{\framed[align=justify,offset=2pt]{La vie n'est pas un long fleuve tranquille !}}
You may also (in the above example) replace « fleuve » by « fleu||ve » in order to get a hyphenation.
Best regards: OK
On 15 Jul 2016, at 16:19, Fabrice Couvreur
wrote: Hi Wolfgang, Thank you. Now I want the figures or boxes with text are automatically placed in the right margin. Is this the best way ? How have justified text in the boxes ? Fabrice
######################################################## \useMPlibrary [dum]
\setuplayout [width=13cm, rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat [recipe] [figure]
\setupfloat [recipe] [default={rightmargin,none}]
\setupframed [frame=on, width=\rightmarginwidth, align=flushleft, location=low, rulethickness=1pt, framecolor=blue, corner=00]
\starttext
\showframe
\placerecipe{}{\externalfigure [dummy] [width=\rightmarginwidth]}
\placerecipe{}{\framed{La vie n'est pas un long fleuve tranquille !}}
\stoptext #######################################################
2016-07-15 13:26 GMT+02:00 Wolfgang Schuster < schuster.wolfgang@gmail.com>:
Fabrice Couvreur 15. Juli 2016 um 13:17
Hello everyone, The document https://drive.google.com/file/d/0B-mkD83s36jbREZmbGdPaGVHUDg/view?usp=sharin... shows what I would do at the place reserved for the text and that reserved for comments, ratings ... Must use two columns or predefine the dimensions of the paper ? Change the layout of the page, the blue boxes are margin texts.
\setuplayout [width=13cm, rightmargin=5cm]
\showframe
\starttext \page[dummy] \stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
___________________________________________________________________________________ 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
___________________________________________________________________________________
Hi Fabrice, Indeed you can place your float a little bit higher in th emargin, as in the example below, by using the keyword « high ». Best regrads: Otared K. % begin fabrice-inmargin.tex \setuplayout [width=13cm, rightmargin=5cm] \setupbodyfont[pagella,11pt] \definefloat [recipe] [figure] \setupfloat [recipe] [default={rightmargin,none,high}] \setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00] \showgrid \showframe \starttext A\\ B \\ C \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} \input ward.tex \setupfloat [recipe] [default={rightmargin,none,low}] A\\ B \\ C \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} \stoptext % end fabrice-inmargin.tex
On 16 Jul 2016, at 00:44, Fabrice Couvreur
wrote: Hi Kavian (your first name ?) Thank you for your suggestion but it is still a little problem: why the baseline of the framed is the thirdA and not the first ? thank you, Fabrice
\useMPlibrary [dum]
\setuplayout [width=13cm, rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat [recipe] [figure]
\setupfloat [recipe] [default={rightmargin,none}]
\setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00]
\starttext
\showframe
A\\A\\A \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
\stoptext
Hi Kavian,
Okay, but I do not understand why the top of the framed can not be on the
baseline of the letter A.
Fabrice
2016-07-16 11:28 GMT+02:00 Otared Kavian
Hi Fabrice,
Indeed you can place your float a little bit higher in th emargin, as in the example below, by using the keyword « high ».
Best regrads: Otared K. % begin fabrice-inmargin.tex \setuplayout [width=13cm, rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat [recipe] [figure]
\setupfloat [recipe] [default={rightmargin,none,high}]
\setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00]
\showgrid \showframe
\starttext
A\\ B \\ C \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
\input ward.tex
\setupfloat [recipe] [default={rightmargin,none,low}]
A\\ B \\ C \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
\stoptext % end fabrice-inmargin.tex
On 16 Jul 2016, at 00:44, Fabrice Couvreur
wrote: Hi Kavian (your first name ?) Thank you for your suggestion but it is still a little problem: why the baseline of the framed is the thirdA and not the first ? thank you, Fabrice
\useMPlibrary [dum]
\setuplayout [width=13cm, rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat [recipe] [figure]
\setupfloat [recipe] [default={rightmargin,none}]
\setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00]
\starttext
\showframe
A\\A\\A \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
\stoptext
___________________________________________________________________________________ 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
___________________________________________________________________________________
Hi Fabrice, If you want the framed box to be placed on the same baseline as the letter A, in the example, then you have to tell ConTeXt to place a margin material right after A, as in A\\ \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} B \\ C and you can play with setupframed by choosing an option « low » or » high » according to your desire. Best regards: Otared
On 16 Jul 2016, at 23:23, Fabrice Couvreur
wrote: Hi Kavian, Okay, but I do not understand why the top of the framed can not be on the baseline of the letter A. Fabrice
2016-07-16 11:28 GMT+02:00 Otared Kavian
: Hi Fabrice, Indeed you can place your float a little bit higher in th emargin, as in the example below, by using the keyword « high ».
Best regrads: Otared K. % begin fabrice-inmargin.tex \setuplayout [width=13cm, rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat [recipe] [figure]
\setupfloat [recipe] [default={rightmargin,none,high}]
\setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00]
\showgrid \showframe
\starttext
A\\ B \\ C \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
\input ward.tex
\setupfloat [recipe] [default={rightmargin,none,low}]
A\\ B \\ C \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
\stoptext % end fabrice-inmargin.tex
On 16 Jul 2016, at 00:44, Fabrice Couvreur
wrote: Hi Kavian (your first name ?) Thank you for your suggestion but it is still a little problem: why the baseline of the framed is the thirdA and not the first ? thank you, Fabrice
\useMPlibrary [dum]
\setuplayout [width=13cm, rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat [recipe] [figure]
\setupfloat [recipe] [default={rightmargin,none}]
\setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00]
\starttext
\showframe
A\\A\\A \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
\stoptext
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Hi Otared,
thanks, in fact, the placement of the \placerecipe{}{} in the text determines
the placement of the framed in the right margin if I understand.
Fabrice
2016-07-17 10:46 GMT+02:00 Otared Kavian
Hi Fabrice,
If you want the framed box to be placed on the same baseline as the letter A, in the example, then you have to tell ConTeXt to place a margin material right after A, as in
A\\ \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} B \\ C
and you can play with setupframed by choosing an option « low » or » high » according to your desire.
Best regards: Otared
On 16 Jul 2016, at 23:23, Fabrice Couvreur
wrote: Hi Kavian, Okay, but I do not understand why the top of the framed can not be on the baseline of the letter A. Fabrice
2016-07-16 11:28 GMT+02:00 Otared Kavian
: Hi Fabrice, Indeed you can place your float a little bit higher in th emargin, as in the example below, by using the keyword « high ».
Best regrads: Otared K. % begin fabrice-inmargin.tex \setuplayout [width=13cm, rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat [recipe] [figure]
\setupfloat [recipe] [default={rightmargin,none,high}]
\setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00]
\showgrid \showframe
\starttext
A\\ B \\ C \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
\input ward.tex
\setupfloat [recipe] [default={rightmargin,none,low}]
A\\ B \\ C \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
\stoptext % end fabrice-inmargin.tex
On 16 Jul 2016, at 00:44, Fabrice Couvreur < fabrice1.couvreur@gmail.com> wrote:
Hi Kavian (your first name ?) Thank you for your suggestion but it is still a little problem: why the baseline of the framed is the thirdA and not the first ? thank you, Fabrice
\useMPlibrary [dum]
\setuplayout [width=13cm, rightmargin=5cm]
\setupbodyfont[pagella,11pt]
\definefloat [recipe] [figure]
\setupfloat [recipe] [default={rightmargin,none}]
\setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00]
\starttext
\showframe
A\\A\\A \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
___________________________________________________________________________________ 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
___________________________________________________________________________________
participants (3)
-
Fabrice Couvreur
-
Otared Kavian
-
Wolfgang Schuster