* How to set a layout shown in the attachment png file?
@ 2009-04-16 1:21 Wei-Wei Guo
2009-04-16 6:45 ` Alex Lubberts
0 siblings, 1 reply; 3+ messages in thread
From: Wei-Wei Guo @ 2009-04-16 1:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 526 bytes --]
Dear all,
I attached a PNG file to show the layout that I want. I want the text part narrowed and
right aligned. I tried the following settings:
\setuplayout
[backspace=20mm,
topspace=20mm,
height=257mm,
width=170mm,
%textwidth=115mm,
header=10mm,
footer=0mm,
rightmargin=0mm,
leftmargin=25mm,
leftmargindistance=-25mm,]
The problem is that text is too wide. I commented the 'textwidth' for it will make the
narrowed text centering. What else do I need to set?
Best wishes,
Wei-Wei
[-- Attachment #2: mylayout.png --]
[-- Type: image/png, Size: 2972 bytes --]
[-- Attachment #3: Type: text/plain, Size: 487 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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to set a layout shown in the attachment png file?
2009-04-16 1:21 How to set a layout shown in the attachment png file? Wei-Wei Guo
@ 2009-04-16 6:45 ` Alex Lubberts
2009-04-16 7:33 ` Wei-Wei Guo
0 siblings, 1 reply; 3+ messages in thread
From: Alex Lubberts @ 2009-04-16 6:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
> I attached a PNG file to show the layout that I want. I want the text part
> narrowed and
> right aligned. I tried the following settings:
>
> \setuplayout
> [backspace=20mm,
> topspace=20mm,
> height=257mm,
> width=170mm,
> %textwidth=115mm,
> header=10mm,
> footer=0mm,
> rightmargin=0mm,
> leftmargin=25mm,
> leftmargindistance=-25mm,]
>
> The problem is that text is too wide. I commented the 'textwidth' for it
> will make the
> narrowed text centering. What else do I need to set?
>From the picture the exact measures are not clear, but perhaps you should
try:
...
width=115mm,
...
leftmargindistance=25mm]
'width' is used to set the textwidth. And 'leftmargindistance'is used to
indicate the distance between the lefmargin column and the body text, so I
think it should be a positive amount. This setting will result in an empty
backspace of 20mm + margin of 25mm + 25mm whitespace + 115mm bodytext +
cutspace of 25mm cutspace (assuming you're using A4 papersize).
Regards,
Alex
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to set a layout shown in the attachment png file?
2009-04-16 6:45 ` Alex Lubberts
@ 2009-04-16 7:33 ` Wei-Wei Guo
0 siblings, 0 replies; 3+ messages in thread
From: Wei-Wei Guo @ 2009-04-16 7:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Ales,
Alex Lubberts 写道:
>> I attached a PNG file to show the layout that I want. I want the text part
>> narrowed and
>> right aligned. I tried the following settings:
>>
>> \setuplayout
>> [backspace=20mm,
>> topspace=20mm,
>> height=257mm,
>> width=170mm,
>> %textwidth=115mm,
>> header=10mm,
>> footer=0mm,
>> rightmargin=0mm,
>> leftmargin=25mm,
>> leftmargindistance=-25mm,]
>>
>> The problem is that text is too wide. I commented the 'textwidth' for it
>> will make the
>> narrowed text centering. What else do I need to set?
>
>From the picture the exact measures are not clear, but perhaps you should
The picture only shows relative position of header, text, and margin.
> try:
> ...
> width=115mm,
> ...
> leftmargindistance=25mm]
> 'width' is used to set the textwidth. And 'leftmargindistance'is used to
> indicate the distance between the lefmargin column and the body text, so I
> think it should be a positive amount. This setting will result in an empty
> backspace of 20mm + margin of 25mm + 25mm whitespace + 115mm bodytext +
> cutspace of 25mm cutspace (assuming you're using A4 papersize).
I tried. It doesn't work. As my understanding, margin and margindistance do not
affect layout. They only decide where margins are.
Best wishes,
Wei-Wei
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-16 7:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-16 1:21 How to set a layout shown in the attachment png file? Wei-Wei Guo
2009-04-16 6:45 ` Alex Lubberts
2009-04-16 7:33 ` Wei-Wei Guo
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).