COMPGROUPS.NET | Post | Groups | Users | Stream | Browse | About | |

### Layout problem

• Email
• Follow

Hi there,

How can I modify the \textwidth for just one page?

Example with 3 paragraphs (a, b, and c):

[page 1]
__________ ||
aaaaaaaaaa ||
aaaaaaa.   ||
bb        || * here the narrow \textwidth
bbb        ||   starts and must go till
bbb        ||   the end of the page.
__________ ||

[page 2]
__________ ||
bbbbbbbbbb ||
bbbbbbb.   ||
cccccccccc ||
cccccccccc ||
ccc...     ||
__________ ||

(Narrow page 1 after paragraph 'a' and wider page 2 starting at the
very top.)

Mika

 0
Reply mikamitsui (2) 4/6/2008 2:25:13 AM

See related articles to this posting

You can try the chngpage.sty package and use a command like:

% The syntax is like this:
% \changetext{textheight}{textwidth}{evensidemargin}{oddsidemargin}
{columnsep}
\changetext{0pt}{1in}{0pt}{0pt}{0pt}

You might have to use a \newpage or a \clearpage to make the changes
take effect.

If you use the memoir.cls documentclass, you can also use the

 0
Reply vnessun (302) 4/6/2008 2:36:03 AM

Hi,

Thanks, but the problem still continue...

I tried to use \changetext{}{6pc}{}{}{} within a \afterpage and also
with the \AtNextShipout but without results, actualy nothing happens.
The big problem is how to change de layout just when the page breaks,
even if the last paragraph of the modified page continues on the next
page.

Here is my code (exemple)

---
aaaaaaaaa aaaaa aaaaa aaaa.

\changetext{}{-10pc}{}{}{}\afterpage{\changetext{}{10pc}{}{}{}}
bbbbbbb bbbb bbb bbb bbbbb bbbbbbbbb bbbbb [NATURAL PAGE BREAK OCCURS
HERE] bbbb bbb bbbbb bbbbb bbbb.

ccccccc ccccc cccccc ccccc...
---

Result: next page continues with 10pc narrow width.

Mika

 0
Reply mikamitsui (2) 4/6/2008 3:05:28 AM

Am Sat, 5 Apr 2008 20:05:28 -0700 (PDT) schrieb Mika:

> Hi,
>
> Thanks, but the problem still continue...
>
> I tried to use \changetext{}{6pc}{}{}{} within a \afterpage and also
> with the \AtNextShipout but without results, actualy nothing happens.
> The big problem is how to change de layout just when the page breaks,
> even if the last paragraph of the modified page continues on the next
> page.

You can't do this. TeX will have build the paragraph before the page
break. It will not rebuild it if you change the page layout later.

A half automatic solution is possible:
If you know how much lines of the paragraph are on the first page you
can use \hangindent/\hangafter/\parshape to change the width of the
following lines of this paragraph.

--
Ulrike Fischer

 0
Reply news21630 (1436) 4/6/2008 8:54:46 AM

Mika wrote:
> Hi there,
>
> How can I modify the \textwidth for just one page?
>
> Example with 3 paragraphs (a, b, and c):
>
> [page 1]
> __________ ||
> aaaaaaaaaa ||
> aaaaaaa.   ||
>  bb        || * here the narrow \textwidth
> bbb        ||   starts and must go till
> bbb        ||   the end of the page.
> __________ ||

aaaaaaaaaaaaaaaa.

\noindent\begin{minipage}{.8\columnwidth}
bbbbbbbbbb.
\end{minipage}

[untested]

///Peter

 0

A few weeks ago, I tried doing the same thing that you are trying to
do with the afterpage.  The last paragraph on the page is formed
before it is shipped out and the closest I got it still left the first
paragraph on the new page with the old layout.  I finally decided to
use some full-page floats that had different widths, but I had to
split the text to make stand-alone text boxes.

Another option  is to manually break the page as in the example
below.  Note that I first compiled the document to see where the break
was, then I inserted the changepage, and used a \noindent so it looks
like the paragraph is continued.  This would be a pain to do on a
regular basis.

\documentclass{article}
\usepackage{chngpage}
%\usepackage{afterpage}
\setlength{\parindent}{1.5em}
\begin{document}

bbb ccc ddd eee fff ggg hhh bbb ccc ddd eee fff ggg hhh iii jjj kkk
lll mmm nnn ooo ppp qqq rrr sss ttt uuu vvv www xxx yyy zzz 111 222
333 444 555 666

%\afterpage{\changetext{}{10pc}{}{}{}}
\changetext{}{-10pc}{}{}{}\noindent 777 888 999 000 bbb ccc ddd eee
fff ggg hhh bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn ooo
ppp qqq rrr sss ttt uuu vvv www xxx yyy zzz 111 222 333 444 555 666
777 888 999 000 bbb ccc ddd eee fff ggg hhh bbb ccc ddd eee fff ggg
hhh iii jjj kkk lll mmm nnn ooo ppp qqq rrr sss ttt uuu vvv www xxx
yyy zzz 111 222 333 444 555 666 777 888 999 000

ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk

ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk

ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk

ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk

ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk ghjk
ghjk ghjk ghjk ghjk
\end{document}


 0
Reply vnessun (302) 4/6/2008 10:30:56 PM
 comp.text.tex 37352 articles. 72 followers.

5 Replies
150 Views

Similar Articles

[PageSpeed] 41

• Email
• Follow

Similar Artilces:

layouts layouts layouts..
I know I have asked lot about this here, but I'm baffled by how hard this is.. I've been doing layouts w/HTML and css for years, and never have a problem getting my stuff to look exactly as I want it to, even complex layouts.. but Swing layouts is just a different league....;) Michael Dunn was very helpful and patient the other day, he helped me to get my window to look exactly as I want it (w/setResizeWeight()'s... etc..) and it looks great, but now am trying to add both a button at the bottom of window and a menu bar on top and I simply can't get it to work.. this i...

problems problems problems
(The short(?) summary) I've got an Access MDB file and a DAO connect with it.. Problem 1 of 2 The below gives me a runtime error 91 Object variable or With block variable not set. I've got the db stuff after the form.show (to make sure all the objects on the form are loaded before attempting to utilize/manipulate them) But it doesn't like it when I use the data object in the form load anyway for some reason.. pffft. Private Sub Form_Load() frmTest1Project.Show datGallery.Recordset.MoveLast datGallery.Recordset.MoveFirst Call LockTextBoxes(frmTest...

Table Layout -vs- Div Layout Problem
Hello, Converting a table layout to a div layout. The navbar is giving me some trouble. div link: http://gertrudischale.com/essay.pl.htm (slightly incomplete, but illustrates problem) table link:http://gertrudischale.com/_en/essay.htm The images in the nav bar are slightly smaller in the div version. I cant figure out why the last item in the nav bar wraps. The widths are the same as the table layout, and there isnt any extra padding... I'm at a loss. Hopefully someone can provide some insight. Thanks To further the education of mankind, "Roberto Roach...

Layout problems
Hello, I'm programming a "monopoly game" in java. It's a project for school and yes, I have a problem. I use a borderlayout and use the center south and west. In the west I created a JPanel. this must contain 3 areas. a top area a middelarea and a bottom area. the middelarea must bu the one that gets bigger when sommeone makes the application bigger. So a borderlayout can do this. (toparea north and bottomarea south). The problem is that those 2 areas must have a fixed size. With the borderlayout the north and soth are dinamical. How can I make top and bottom fixed in size?...

Problems problems....
I've got Fujitsu MAN3184MP and Adaptec 29160 scsi card. Sometimes i have this message "A disk read error occured" , sometimes even bios does not recognize it, sometimes it does but the boot sequence does not start it seems that motherboard bios has problems with it ( so it seems to me, i could be wrong about that assumption) . Then i reset and it all works perfectly. I've noticed a speed degradation in Win XP lately. I'm angry :)) I have LVD/SE terminator, and i think 68pin cable ( not sure about that ). Hope i gave you enough info to try and help. Thanx! -- -...

Problem with a problem
Hello, take a grammar G with alphabet {0,1} such that (the word problem for) the language L_G={w in (0+1)*|w\in L(G)} is very complex, say in PSPACE or some higher complexity class. Now consider an "easy" problem EASY like: "Is an element of L_G in L_G?". Well, this seems to be fairly easy because the answer is "yes" in any case. Hence the problem should be of small complexity. But if one models such a decision problem one has to construct a language L with alphabet A such that the word problem for L reflects exactly the decision problem which one is interested...

layout problems
ARGGGGHHHHHHHHHHHH... I have a main app window. I want to create a dialog/wizard tool that allows users to specify options that will then be entered into a perl hash table to begin processing data. The problem I am fighting is that regrdless of how I specify the layout, my widgets in my sub-frame are all located at the bottom of my main window. Any wisdom that can be imparted to me? Regards, Joe ----- Original Message ----- From: <joe.cipale@radisys.com> Newsgroups: comp.lang.tcl Sent: Thursday, January 06, 2005 3:23 PM Subject: layout problems > ARGGGGHHHHHHHHHHHH... > ...

Layout problems
Hi, I have a JList which is inside a JScrollPane (which is in a hbox which is in a vbox): http://i.math.drexel.edu/~pg/scroll.png If the single entry in the list happens to be too long, scrollbars show up and obscure the view. Is there a way to make Swing calculate that this will happen and make it allocate more space? Thank you very much! Aaron Fude "aaronfude@gmail.com =D0=B4=B5=C0=A3=BA " > Hi, > > I have a JList which is inside a JScrollPane (which is in a hbox which > is in a vbox): > > http://i.math.drexel.edu/~pg/scroll.png > > If the single ent...

Problems with layout
Hi I made a screenshot of the problem (3.6K): http://www.cip.biologie.uni-osnabrueck.de/niehaus/missingtext.png In theory I have 9 wxPanel aligned in a vertical box (vbox). Each panel has a wxBitmap on the left and a string (only one word) on the right side. As you can see there is no text (I tried to adumbrate it for the first two items using GIMP...). You see the bitmaps but only the top left corner. The bitmaps should be about 5x5cm and you see the top left 1x1cm of them. name() returns the correct string, I checked and symbol() return the correct bitmap, I also checke...

Layout Problem
Hi There, I have a little Problem. I try describe it by this picture. http://clients.frixxx.de/xhtml/tables.jpg all areas named with "table"+nr are div tags. ok in table2 there are 2 tables 3 and 4 and i like table3 to have the same height as table4 and table4 the same as table3 depending on the content. f.e. content of table4 requires more height, than table3 should get the same height as table3. This should all be xhtml1.1 compatible. I tried it but the tables 3 & 4 had more height than table2. that is not wanted. can anyone help? MFG <f:x> ...

Layout problems
Hi I posted this to alt.html earlier but thought I would try here as well. I am trying to create what initially seemed to be a fairly simple layout using CSS. This is what I am trying to do: http://homepages.ihug.co.nz/~nrkn/explain/req.png I have made a prototype of the page using tables to show you how the page should look and work when the browser window is resized. Please ignore the shabby html, I threw this together in Frontpage. It works in both IE and Mozilla well enough to explain what I am trying to do (although is a bit odd in Mozilla): http://homepages.ihug....

Re: How many files can you have in a VMS directory without performance problems? performance problems? performance problems? problems? performance problems? performance problems? problems? perfo
First, does anyone know why Info-VAX goes nuts on subjects from time to time? (Or is the trouble elsewhere?) From: JF Mezei <jfmezei.spamnot@teksavvy.com> > DELETE Z*.*;* > DELETE Y*.*;* > ... > DELETE A*.*;* > > (followed by the numbers). This scheme may be a bit obsolete. See: http://h71000.www7.hp.com/doc/731FINAL/4506/4506pro_014.html#index_x_890 I quote: [...] 5.2.3.1.2 Extended Character Set In addition, OpenVMS V7.2 on Alpha systems and ODS-5 disks includes support for the use of file names, and subdirectory and root subdirectory names, tha...

wxPython layout problem
I have the following code: [code] class MainFrame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, wx.ID_ANY, title, style=wx.DEFAULT_FRAME_STYLE |wx.NO_FULL_REPAINT_ON_RESIZE) # build top area topSizer = self.buildTopPanel() # build input area inputSizer = self.buildInputPanel() mainSizer = wx.BoxSizer(wx.VERTICAL) mainSizer.Add(topSizer, 1, wx.EXPAND | wx.ALL, 5) mainSizer.Add(inputSizer, 1, wx.EXPAND | wx.ALL, 5) p = wx.Panel(self, wx.ID_ANY) p.SetSizer(mainSizer) ...

Print Layout problems
Using PSP 9.01 (9.0.1.1) with Win XP SP2 I create a Print Layout, typically using a 17" x 26" landscape page and about 16 - 20 images which are about 4 x 6 or a bit larger - most of these are landscape but a few are portrait. It works fine in the session in which I create it. I print, then save layout with images. Later, in another session, I open Print Layout and use Print Setup to set paper type, size & orientation etc. Then I open my saved User layout. The images and the whole layout are now rotated 90'CCW, and shifted, like so: LLLLLLLLLLayout L L L L ...

Filer Layout problem
The morning GM is at serious risk of breaching his cage, however despite some days of extreme frustration, I've taken a very deep breath... I've been trying, and yes it has been very trying... to get this RO 6.16 Filer Layout to do what I want it to do. I obviously misunderstand, either its limited capability, or how to make it function. If I explain what I want, maybe some kind person would explain to me just what to do. :-) I want my RO filer to display files and directories in the \$ Root and most other directories/files in the usual manner by "Name". But there is one...

Problem with Layout ... Urgent
I'm working on a Cadence layout project and am facing the following problem. I'm following the instructions from a reference manual to creat a pmos pcell. The manual describes a pcell which expands upwards in width but my pcell has to expand downwards. The stretch line has been defined by me and that works. The problem lies in getting the contacts to repeat. The commands in the manual (some of which I have changed to suit my pcell) are as follows : Stepping Distance : 1.5 (This is the stepping distance I rtequire for my pcell) Number of repetitions : fix(width-0.8)/pcStep (width is th...

Layout with portal problem
Hello fellow FMP users! I've been using filemaker for a short period of time only. I've got a problem. I've got one file with customer numbers (fixed) and their annual bills. (BILL-FILE) In my main file(MAIN-FILE), I have a layout wherein you enter the customer number. As a result the portal is filled with all the annual bills. The info in the portal is just a small bit of the billing info from BILL-FILE. What I would like to do is this. When you click/doubleclick the portal row OR a button placed in the first portal row in layout modus (and thus recurring in every row when i...

wxListbook layout problem
Probably some of you know the amazing demo application for wxPython. When you open the Listbook demo in the Core Windows/Contols folder, replace there wx.LB_DEFAULT by wx.LB_RIGHT and resize the main window the listbox on the right side moves into the area of colored panel. This is a surprise to say the least. Has anyone of the GUI specialists an idea how to fix this? Kay PS. I tried this on WinXP only. Andrea Gavana wrote: > Hello Kay, > > >>Core Windows/Contols folder, replace there wx.LB_DEFAULT by wx.LB_RIGHT >>and resize the main window the listbox on the right ...

nfet layout problem
Hi, I am using SiGe 7HP technology. I used 2 as Multiplicity for nfet in the schematic. In the layout, I connected Sources, Drains and Gates of two identical nfets together. LVS shows the schematic matches the layout. However, when I merge those two Sources in the layout (like fingers), LVS says Multiplicity FET Parameters l/s l: 180e-9/180e-9 w: 4e-6/2e-6 nf: 2/1 m:1/2 gcon:1/1 Seems the extracted view has 2 for nf and 1 for m. Does anyone know what's wrong? My purpose is to break skiny long nfets into multiple short nfets connected by fingers. Thank you! sincerely...

latex layout problem
Hi, I set up the page layout in the document,saying the topmargin=0in and I am using report style. What I want is there is one inch margin on the top of each page(at least). So far at the beginning of each chapter and in the tableofconetent,listoffigure,listoftable pages,it works fine. but on other pages sometimes there is only 0.5 in white space on the top. Just wondering how it happens. Does any package I use change it? Thanks Feiyue On Sat, 25 Oct 2003 18:05:25 +0000 (UTC), <lify@rubby.homelinux.com> wrote: >Hi, > I set up the page layout in the document,saying the top...

Flow layout problem
Hi, I have what I think is a relitavely simple problem: I have a bigger application with multiple JPanels etc but have scaled it down for the example below... When I resize the window so that it is too small to fit all the buttons on screen horizontally I would like the buttons to re-organise themselves on screen in the way they would do if they were just directly on the JFrame rather than in a couple of JPanels. If possible I would like a reason for this behaviour and a way to make the buttons react like this: http://java.sun.com/docs/books/tutorialJWS/uiswing/layout/example-1dot4/FlowLayo...