Word Wrap Around?

Okay.
I'm editing my MA thesis and my chair wants me to use "word wrap around" and "left justify."
I have never heard of either of these. He works in word and does not know anything about Pages as he has never used it. I can say the same thing about Word myself, so to each their own.
Does anyone know how to achieve that effect in Pages?
What he wants it to do is not break up words, but not for me to do it manually.
Any formatting ideas?

*Word Wrap around* is an odd expression. It could be either +word wrap+ which is what Pages does naturally, which is start a new line when it runs out of room on the end of the line, or he could mean +no hyphenation+.
If it is the later you will need to set that in:
+Inspector > Text (T) > More > "Remove hyphenation for paragraph"+ with the text selected.
*Left justify* is just simply +Align left+, again in the Text tab (the 1st option in the Alignments buttons) or on the toolbar. Unless he means Justify which is align both sides of the text to the margins and spread out the words in between (the 4th option in the Alignments buttons).

Similar Messages

  • JTextArea failing proper word wrap within JList

    A JTextArea is inserted into a JScrollPane which is being rendered in a JList. Each of these JTextAreas render correctly, except the text within them does not word wrap around the whitespace.
    Example, instead of seeing
    |Testing 1 2 3    |
    |testing.         |
    ------------------we are seeing:
    |Testing 1 2 3 tes|
    |ting.            |
    ------------------I'm aware the JTextArea component may not have a chance to validate properly, since it isn't visible until it is drawn into the JList. (Note: lineWrap on the JTextArea is set to true).
    Is there anything I can do to correct this? Or am I wrong about the cause and there's another solution?

    I think you're looking for
    JTextArea.setWrapStyleWord(true);
    Normally I'd yell at you to read the API, but I
    remember having a
    hard time finding that one myself. :)Looking at the link camickr posted, I saw that in some example code and immediately checked it out. Tried it in my code, and it works.
    I'm a big advocate on the API myself, shame on me for missing it! (Glad I'm not the only one tho)

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

  • Word Wrap in JTextPane

    I'm working with just a JTextPane, no JScrollPane around it or anything.
    I would like the JTextPane to use word wrap, but it looks like by default it does not. I looked through some API stuff and tutorials and found nothing on the subject.
    The code is trivial and pointless to post right now. All I dd was make a JTextPane via new JTextPane() (no arguments or anything) and type in it enough to see if it word wrapped and it didn't.
    Is there a way to enable word wrap on JTextPanes?

    no JScrollPane around it or anything.The scroll pane forces the wrapping because it enforces the width limit. Otherwise there is no limit.
    You can use setPreferredSize(...) to force the width, but then that also restricts the height.
    Reply 6 of this posting may give you some ideas.

  • Word wrapping incorrect inside JTextPane on MAC 0.5/10.4 and Linux OS

    Hello java-dev team,
    In my application, I am using JTextPane as a text editor to create RTF text. The problem I observed with the JTextPane on MAC OS and Linux OS flavors (I tested on Ubuntu 8.04) is: whenever I am changing any of the text property (font color, font name, font style like bold, italic or underline) and then enter the characters without providing space, the whole word gets wrapped to the next line from the point where exactly the property change starts i.e. the new formatted text is jumped to the next line from the starting point of formatting.
    My requirement is, as I am not adding any space character while changing the property, the characters should be entered in the sequence and should come to new line as per normal word-wrap rule.
    Can anybody help me out in this regards with some solution as it’s a very urgent requirement?
    Below I am also providing the sample code to check the behavior. There is no dynamic facility to change the property in the below code but I am providing the text with multiple formatting settings through code itself. To reproduce the above issue, just type the characters using keyboard in between characters with changed text properties and you can see the whole word jumping to new line.
    import java.awt.Dimension;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextPane;
    import javax.swing.text.MutableAttributeSet;
    import javax.swing.text.SimpleAttributeSet;
    import javax.swing.text.StyleConstants;
    import javax.swing.text.StyledDocument;
    import javax.swing.text.StyledEditorKit;
    public class TestWrapping {
         JScrollPane scroll;
         JTextPane edit;
         public TestWrapping()  throws Exception {
              final JFrame frame=new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              edit=new JTextPane()
                   public void setSize(Dimension d)
                        if (d.width < getParent().getSize().width)
                             d.width = getParent().getSize().width;
                        super.setSize(d);
                   public boolean getScrollableTracksViewportWidth()
                        return false;
              edit.setPreferredSize(new Dimension(150,150));
              edit.setSize(150,150);
              edit.setEditorKit(new StyledEditorKit());
              scroll=new JScrollPane(edit);
              edit.getDocument().insertString(0,"11111111111111222222222222222222222222222222222222222",null);
              MutableAttributeSet attrs=new SimpleAttributeSet();
              StyleConstants.setBold(attrs,true);
              ((StyledDocument)edit.getDocument()).setCharacterAttributes(30,5,attrs,false);
              StyleConstants.setUnderline(attrs,true);
              ((StyledDocument)edit.getDocument()).setCharacterAttributes(35,5,attrs,false);
              StyleConstants.setFontSize(attrs,25);
              ((StyledDocument)edit.getDocument()).setCharacterAttributes(40,5,attrs,false);
              frame.getContentPane().add(scroll);
              frame.setBounds(0,0,150,150);
              frame.show();
         public static void main(String[] args) throws Exception {
              new TestWrapping();
    }The same functionality works fine on Windows XP and problem is observed on MAC OS 10.4/10.5, Ubuntu 8.04. I am using jdk1.5 on both the platforms. I tested using jdk 6.0 on Ubuntu 8.04, and the problem is easily reproducible. I placed a query in the respective OS forums also but did not receive any replies. I also searched the sun’s bug database, but could not find any bug addressing the mentioned problem correctly. I also logged issue at bugs.sun.com and was assigned internal review ID of 1480019 for this problem.
    If you need any additional information, please let me know.
    Thanks in advance.
    Regards,
    VPKVL

    VPKVL wrote:
    Hi All,
    Just want to update that when I checked this issue with JDK1.6 on Ubuntu 8.04, I am unable to reproduce the issue. Everything works as expected. But problem continues on MAC 10.5. So can anybody help me out in coming out of this issue on MAC 10.5.
    Thanks in advance.The only thing I can suggest is that you open a bug (radar) with apple ( developer.apple.com ), and then wait at least 12 months for Apple to get around to fixing it :s

  • Word wrap in JList

    I was wondering if I can do a word wrap with JLists.
    I have this so far.
    JList pizza;
    DefaultListModel listPizza;
    JScrollPane scrollPizza;
    listPizza = new DefaultListModel();
    pizza = new JList(listPizza);
    scrollPizza = new JScrollPane(pizza);
    This will let me scroll horizontally if the text becomes longer than the screen, but I want it to wrap around the screen. I only want to it to scroll vertically.

    In the future, swing questions should be posted in the swing forum.
    If I recall correctly, you can do this by making a custom CellRenderer for your JList which uses a JTextArea to do the rendering. Search the swing forum or look at the sun java tutorial for custom renderers.

  • Word Wrap very annoying?

    I just switched over to Dreamweaver because of the built in ftp server functionality.  So far, I have found it to be a very nice editor. 
    One problem I have it with wordwarp in the coding.
    If a line is wrapped, why does it not indent to the same column that the line started on. 
    For example if I was inside several elements and this particular <p> started in column 20, if the line runs over, it wraps and the next line starts on column 1.  This makes the code very hard to read as you have out of place text.
    <body>   
         <div>
              <p>This is just a long sentence with a bunch of rambling so the line will wrap back
    around to the first column so you can see what I am talking about.
         <div>
    </body>
    It would be so much better if it looked like this:
    <body>
         <div>
              <p>This is just a long sentence with a bunch of rambling so the line will wrap back
              around to the first column so you can see what I am talking about.
         <div>
    </body>
    Is there way to do this?
    I have searched the adobe forums and google, but I feel like I am just searching for the wrong thing because all I ever come up with at the most is how to turn word wrapping on or off.

    You can turn on that style of word wrapping, but it's not enabled by default because it relies on inserting a hard newline character each time a line is wrapped. Newline characters are treated by JavaScript as indicating the end of a statement, so this style of wrapping can break JavaScript on your page if you're not careful.
    To enable hard wrapping with text indentation, open Preferences (Edit menu on Windows, Dreamweaver menu on a Mac), and select the Code Format category. Select the Automatic wrapping checkbox and set the column (character) at which you want the line to be wrapped.
    The Dreamweaver default is to use soft wrapping, which is controlled by View > Code View Options > Word Wrap. This option toggles soft wrapping on and off. A soft wrap automatically wraps code when it reaches the right edge of Code view, but without inserting a newline character.

  • Dynamically word wrap in a JLabel

    I have several JLabels in a complex layout that has a JSplitter and is in a resizeable window.
    I would like it if there isn't enough room for the text of the JLabel to fit on one line, but there is enough vertical room (there almost always is), for the JLabel to automatically word wrap, and become 2 or three line, as needed. (There are usually only 2 or three words in these JLabels.
    I haven't found a way to do this. I know about putting HTML in the JLabel lets you put <BR>s in, but I would like the JLabel to be only one line if possible, going to two line if there isn't enough room to fit all the text on one line.
    I searched this forum, and found a suggestion to use a JTextArea made up to look like a JLabel ( http://forum.java.sun.com/thread.jsp?forum=57&thread=399180 second reply from bottom ), but this has it's own problems. The JTextAreas, try to take up as much vertical space as possible instead of only as much space a necessary (as a JLable does) in the layout that I'm using.
    Is there any way of doing this?

    JLabel label = new JLabel();
    label.setLayout new BorderLayout() ;
    JTextPane pane = new JTextPane();
    pane.setBackground(label.getBackground());
    // or try making it opaque
    pane.setText("long text here");
    label.add(pane,BorderLayout.CENTER);The above still has the problem of wanting its preferred size to be calculated from the text layed out in one line. I was digged around in my Java2D folder and found some old code I wrote, based on something by J. Knudsen:
    import java.awt.*;
    import java.awt.font.*;
    import java.text.*;
    import javax.swing.*;
    public class JMultilineLabel extends JComponent {
        private String text;
        private Insets margin = new Insets(5,5,5,5);
        private int maxWidth = Integer.MAX_VALUE;
        private boolean justify;
        private final FontRenderContext frc = new FontRenderContext(null, false, false);
        private void morph() {
            revalidate();
            repaint();
        public String getText() {
            return text;
        public void setText(String text) {
            String old = this.text;
            this.text = text;
            firePropertyChange("text", old, this.text);
            if ((old == null) ? text!=null : !old.equals(text))
                morph();
        public int getMaxWidth() {
            return maxWidth;
        public void setMaxWidth(int maxWidth) {
            if (maxWidth <= 0)
                throw new IllegalArgumentException();
            int old = this.maxWidth;
            this.maxWidth = maxWidth;
            firePropertyChange("maxWidth", old, this.maxWidth);
            if (old !=  this.maxWidth)
                morph();
        public boolean isJustified() {
            return justify;
        public void setJustified(boolean justify) {
            boolean old = this.justify;
            this.justify = justify;
            firePropertyChange("justified", old, this.justify);
            if (old != this.justify)
                repaint();
        public Dimension getPreferredSize() {
            return paintOrGetSize(null, getMaxWidth());
        public Dimension getMinimumSize() {
            return getPreferredSize();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            paintOrGetSize((Graphics2D)g, getWidth());
        private Dimension paintOrGetSize(Graphics2D g, int width) {
            Insets insets = getInsets();
            width -= insets.left + insets.right + margin.left + margin.right;
            float w = insets.left + insets.right + margin.left + margin.right;
            float x = insets.left + margin.left, y=insets.top + margin.top;
            if (width > 0 && text != null && text.length() > 0) {
                AttributedString as = new AttributedString(getText());
                as.addAttribute(TextAttribute.FONT, getFont());
                AttributedCharacterIterator aci = as.getIterator();
                LineBreakMeasurer lbm = new LineBreakMeasurer(aci, frc);
                float max = 0;
                while (lbm.getPosition() < aci.getEndIndex()) {
                    TextLayout textLayout = lbm.nextLayout(width);
                    if (g != null && isJustified() && textLayout.getVisibleAdvance() > 0.80 * width)
                        textLayout = textLayout.getJustifiedLayout(width);
                    if (g != null)
                        textLayout.draw(g, x, y + textLayout.getAscent());
                    y += textLayout.getDescent() + textLayout.getLeading() + textLayout.getAscent();
                    max = Math.max(max, textLayout.getVisibleAdvance());
                w += max;
            return new Dimension((int)Math.ceil(w), (int)Math.ceil(y) + insets.bottom + margin.bottom);

  • How do I get text to wrap around a jpeg photo. Pages instructions don't eem to work for me,

    How do I get text to wrap around a jpeg photo. Pages instructions don't seem to work for me. I'm just beginning to use Pages for other than simple word processing.

    I am creating a photo album with captions and have tried to have one caption wrap around a photo image that is part of a series of three overlapping and descending images. I have selected the photo, clicked Inspector etc. with no luck. I did read a previous answer re floating and noticed that both my text and my image have inline in light colour and floating in dark, which I presume means they are both inline. When I try to click on Floating in Object Placement, nothing happens. The option doesn't appear to be "available", unlike the wrap options below, which do light up and indicate what I want to happen. It just doesn't happen and I don't know how to solve the problem.
    I have had to replace my older computer on which I did all of these projects (newsletters, albums, etc.) with an old version of InDesign, which no longer works with the newer OS 10.6. So I'm trying to learn how to do the same types of things with Pages, and it's somewhat frustrating, since text wrap was quite simple with InDesign.
    Stan

  • Word Wrapping in DM8

    i'd like to word wrap (i think) so that people can move the
    borders of the window around and still see all the texts and
    images. can somebody tell me how to do this please?
    thank you

    That actually doesn't have much to do with it. (No offense,
    Ken!)
    If your text is within a container (a table, or a div, most
    likely) which is
    set to a percentage width, it will wrap to suit the size of
    the window,
    however the window is sized. This is assuming that you're not
    putting hard
    returns (line breaks - <br>) at the end of any lines of
    text.
    Hope that helps,
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet
    "Ken Binney" <[email protected]> wrote
    in message
    news:e7776j$4u5$[email protected]..
    > Confine your outermost container to no more than 800px
    wide,
    > and you should be OK.
    >
    >
    > "homedeeth" <[email protected]> wrote
    in message
    > news:e775g8$2ul$[email protected]..
    >> i'd like to word wrap (i think) so that people can
    move the borders of
    >> the window around and still see all the texts and
    images. can somebody
    >> tell me how to do this please?
    >>
    >> thank you
    >
    >

  • SAP Script : Word Wrap

    In my SAP Script I am outputting Long Text which runs into
    several lines in a ceratin spot in MAIN window. This is output at line item level. I have allotted a space of 40 characters to output. Each line of Long Text is 132 characters long. Is there a way to make the text wrap around i.e after it has printed 40 characters it should go to next line.
    Vinay

    HI,
    Try usig RKD_WORD_WRAP and then use the output of this to SAP script. U can limit then number of characters per line, hence u can change from 40 to 32 length using word wrap.

  • Why is my Word Wrap greyed out?

    I want some text to wrap around an image but the option to do so is greyed out and unavailable. What am I doing wrong?
    Thanks!

    Word wrap in HTML only works, when the image is pasted into the text (inline graphic). Placing an image overlapping onto a text frame will not work.

  • Why does anchoring break word wrap?

    I have a 200+ page typical book--one big column per page (two facing pages), and about 30 images/illustrations scattered throughout the book (at most one image per page). Most of the images are, say, half the column wide, and I want the text to flow around them. So I place the image in a reasonable spot and select Word Wrap | Wrap Around Bounding Box. Looks great so far. Then I anchor it--and the first line of text flows UNDER the image frame. Release the anchor and it word wraps correctly. When it's anchored I've tried both Wrap Around Bounding Box and Wrap Around Object, and various other word wrap options--the first line of text still wraps under the image frame. But all is well once I release the anchor. I'm a newbie--what am I missing?

    It seems to not-work-as-expected if I place the anchor in text that is being word wrapped--that is, anywhere horizontal to the image. If I place the anchor in text above the image, that isn't being wrapped, it appears to work as expected. Sadly, this would suggest that if I want to place an image next to the paragraph that references it, and place the anchor inside the paragraph that references the image, that word wrapping won't work.

  • [SOLVED] How to add Word-Wrapping to a QPushButton

    I'm working on a Qt project and I have a QPushButton on which I'd like to allow word wrapping:
    I know I can change it to a QLabel, but due to the specific purpose of the application, it needs to be clickable (so I think that means it must be a QPushButton). I've searched around online a bit and the only solution I've been able to find is "inheriting." However, I can't seem to figure out how to do it. Can anyone help? Thanks!
    Last edited by tony5429 (2009-08-22 19:20:38)

    I don't think that is possible, as it is against QPushButton's intended design.
    However, you could easily derive a class from QLabel and overload the
    virtual void QWidget::keyPressEvent ( QKeyEvent * event )
    function or install an event filer (http://doc.trolltech.com/4.5/eventsandfilters.html)
    on a "plain" QLabel to do the exactly same.

  • How Can I Word-wrap a Value?

    How can I force a selection in a drop-down menu to word-wrap in the value portion of an object?  I can achieve my desired result in the caption portion by increasing the height of the object.  However, when I increase the size of the object, the value portion does not wrap.

    Are you sure that a drop down menu is the best option for what you're doing? Maybe another Object type would suit your purposes better--like radio buttons.
    Anyway, You can edit the XML source and add a CDATA tag around the items in your list. So, if you have a drop down list with {Something really long goes here, Something else really long here, And another really long thing} as your options, click on the XML Source tab.
    Add
    <![CDATA[Something really long
    goes here]]>
    Now, this will break the line as you're wanting to do, but it's going to cause a different problem--The list of items was originally selected by the first, second, and third lines in the dropdown list. They still are. So, you have 6 different lines, and only the first three can select something. If you're just wanting to have a dropdown that the user selects to read a list and not to select something, then this is probably ok. If you want the user to select an item, then this is a terrible idea.
    If your lines are just a little bit too long to fit, you can set the value's font to "0" Then it will shrink and expand the font size to fit the largest selection. Two notes, the dropdown arrow will cover the last bit of the line, and there is a limit to how small it can get.

Maybe you are looking for

  • How do I combine multiple PDF using PHP on Linux

    Hi, I would like to know if there is an Adobe product that can combine multiple PDF's into a single document and works on Linux? We are developing an application using PHP on Linux that has to combine selected PDF's and would like to know if there is

  • Sync iphone through wi-fi network...

    I did a quick search and didnt see anything about this. I think this may be a neat feature. Its definately something i would use. I dont always take the time to go and plug my iphone into my comptuer, so i thought it would be cool to be able to sync

  • Using an iPad in Middle School, Can I disable or lock wallpaper?

    I have a classroom set of iPads, and although they work great for our needs, the kids are constantly changing the wallpaper, and focusing on this rather than their work. I need to know if there is a way to lock this feature so the kids can not change

  • I can't find a class to run command line stuff...

    Does J2SE have the capability to run command line files/executable files? I need to run some things from command line on my local machine. This ap will be swing based. Thanks for any insight. nick

  • I'm new to mac and I'm not sure if I have made a proper setup of my email account

    I can receive some mails but not all. I'm receiving emails through my PC Outlook that I'm not receiving with the Mac Book Air Mail. I don't understand what is going on. Maybe something's wrong with my email account settings?