Control the vertical text with styles (or similar) rationale

I'm on a 450-page document which is divided into 20 separate chapters. Each chapter is divided into sections and each section begins with a title that includes a page break. This means that some end of sections with a few paragraphs of text on a page is empty.

Where pages are close to full text, I like to get the vertical justification to "justify" so that the leader/line spacing is adjusted to the top and bottom lines in uniform positions.

Is it possible to do this automatically and without having to manually turn the parameter "align: top ' on pages without text? (and therefore, in which the setting seems ridiculous?)

(I'm working to be able to make changes to the content of re-importation of text for future versions without having to manually change the settings on each image whenever, if there are major changes in the length of the text, etc.).

Thanks if you can help!

Here is a review of your options of native InDesign (which boil down to the use of the sequence and rotating Options on vertical Justification).

Substances wrote a plugin "Proper vertical Justification" which is very nice. I've never used and am not connected with in - Tools.com (in addition to having purchased their products).

(I'm working to be able to make changes to the content of re-importation of text for future versions without having to manually change the settings on each image whenever, if there are major changes in the length of the text, etc.).

I deal with "major changes in the length of the text" on a daily basis, due to the expansion of text or compression in the translation. The best way to do it, in my experience, is to style all your text with an object Style frames and wisely use keep Options. At the very least, make two object Styles - one for 'body' of the text, and then one for 'last page' text alignment at the top. In this way, you can simply insert/delete pages in the middle of your chapter, and you will not need to access text block options at all.

Tags: InDesign

Similar Questions

  • Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Hello

    2796614 wrote:

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Of course, it is possible.  According to what the text file looks like to, you can create an external table that treats the text file as if it were a table.  Otherwise, you can always read the file in PL/SQL, using the utl_file package and INSERT of PL/SQL commands.

    You have problems whatever you wantt?  If so, your zip code and explain what the problem is.

    Whenever you have any questions, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the exact results you want from these data, so that people who want to help you can recreate the problem and test their ideas.  In this case, also post a small sample of the text involved file.

    If you ask about a DML operation, such as INSERT, then INSERT statements, you post should show what looks like the tables before the DML, and the results will be the content of the table changed after the DML.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

  • Replace the selected text with other content TextFrame

    Hello

    I am changing a text selected in something new, involving the movement of text and the paragraph style using a jsx script. At the present time, everything works beautifully:

    • I entered the select text
    • I have create a new temporary TextFrame
    • I build my new paragraphs and apply styles to them in the new TextFrame

    What I was not able to reach still is to replace the original selected text by temporary TextFrame content.

    Any help would be more than welcome

    A part of my script:

    myText = app.selection[0].contents;

     

    ... do some stuff


    var myDocument = app.documents.item(0);

    var myPage = myDocument.pages.item(0);

    var myTextFrame = myPage.textFrames.add();


    myTextFrame.geometricBounds = [0, -70, 150, 70];

    myTextFrame.contents = "Paragraph1\rParagraph2...";


    myTextFrame.paragraphs[0].appliedParagraphStyle = pStyleGroup.paragraphStyles.itemByName('Style1');

    myTextFrame.paragraphs[1].appliedParagraphStyle = pStyleGroup.paragraphStyles.itemByName('Style2');

    And now, in myTextFrame, I have my new paragraph formatted, and I would like to replace the original selected text with the contents of my TextFrame (keeping the paragraph styles).

    Hello

    Keep the logic of the code and edit utilities:

    var
        mSourceIdx = app.selection[0].index,
        mStory = app.selection[0].parentStory,
        mReplaceStuff = {
            elements: [
                ["Paragraph_1\r",  "Style_1"],
                ["Paragraph_2\r",  "Style_2"],
                ["Paragraph_X\r",  "Style_X"]
                ]},
        mTarget, cElement, cText, cParaStyle;
    
    while (cElement = mReplaceStuff.elements.pop()) {
        cText = cElement[0];
        cParaStyle = app.activeDocument.paragraphStyles.item(cElement[1]);    // modify if styleGroups present in a structure
      mTarget = mStory.insertionPoints.item(mSourceIdx);
        mTarget.contents = cText;
        mTarget.paragraphs[0].appliedParagraphStyle = cParaStyle;
         }
    
    app.selection[0].contents = "";
    

    MReplaceStuff allows to prepare stuff to replace

    Jarek

  • How to search the selected text with a default search engine?

    Hello

    Before the recent update of the search bar, you can select your 'current' search engine, and a search for the selected text (right click on the selection) would use this engine.

    Now, it seems that you can only search for the selected text using the default engine. If that is correct, it's a big step backwards for me. For example, I can't have Google as my default search engine and the search for a text selected on eBay!

    Or am I missing something?

    Thank you!

    R.

    I find this extension very useful for selected items in the web pages. It offers all your search engines with select > right click.
    https://addons.Mozilla.org/en-us/Firefox/addon/context-search/?src=search

  • Change the source file of the insert text with a script

    I'm looking for a way to replace existing-insert text in a document with the contents of another file (by reference), using scripts. I have a document c:\referer.fm, in which there is an insert text which the source file is: c:\A.fm

    I also have c:\B.fm, and now I want to change referer.fm so that is no longer the overlay of text contains the text of A.fm, but the B.fm.

    I tried this:

    var doc is app. ActiveDoc;

    var textinset is doc. FirstTiInDoc;

    var pathtosource is textinset. TiFile;

    pathtosource = "c:\B.fm";

    textinset. UpdateTextInset();

    But it does not work. I guess that the "pathtosource" parameter can be done this way. If someone knows a way to do it, I would greatly appreciate your help!

    David

    Hello David,.

    You do not manipulate the text overlay, but a copy of the file in the text box. Your "pathtosource" parameter is a local copy of the property that you read from the actual text insert.

    Try this code instead:

    var doc is app. ActiveDoc;

    var textinset is doc. FirstTiInDoc;

    textinset. TiFile "c:\\B.fm".

    Note that the backslash must be escaped with the backslash to make it work in a JavaScript string. To make your script Fail-Safe, test the name of file textinset before changing. You do not have the textinset that you expect to have, as might also be INSET text on master pages and reference. All inserts text are in a single linked list.

    Also, update the text tagging along after that changing the path may not always work, as compared to FM, last changed the file date text inset with the last time that the textinset has been updated. To force the FM to update the textinset, you must include the following line of code after changing the filename text inset:

    textinset. LastUpdate = 0;

    Then, you can call the UpdateTextInset() method and it will work.

    Good luck.

    Jang

  • in the vertical page with scrollable content, I have can´t by scanning to the next item. Why?

    in the vertical version of the page with a picture of scrollable content, I have can´t by scanning to the next item. the scrollable content framework has, in both versions, the exact size of the page. in the horizontal version, it works perfectly. Used folio builder v22, pdf and smothscrolling off.

    Post edited by: dps loss

    Thanks for the reply. But I discovered that it was my fault. A status of an object is outside the scrolling of content. But thank you for the opportunity to ask questions.

  • How can I control the Visual effect with the Camera class?


    I checked the document:

    http://help.Adobe.com/en_US/AS3LCR/Flash_10.0/Flash/Media/camera.html

    But still can't find any information on how to control the Visual effect (like brightness, saturation and so on) my pc camera.

    This kind of work is possible with actionscript?

    You can't unless the manufacturer of the device has an API available for him.
    There is no possibility to control the native camera functions by default.

  • How to extract the sql text with SID and SERIAL No.

    Hello

    I am new to oracle database and recently I started my journey in the optimization of the performance.
    I need to retrieve the sql text that is triggered by the user in function were SID and SERIAL No.

    Thanks in advance...
    Prabha

    Select
    a.SID,
    a.Serial #.
    b.sql_text
    Of
    session v$ a.
    v$ sqlarea b
    where
    a.sql_address = b.Address
    and
    SID = 43;

  • Static text is much better than the dynamic text with the same font settings

    Hello

    I have exactly the same parameters for static and dynamic text, but the static text seems much sharper. Someone knows why?

    Police: Trebuchet MS

    Size: 30 pt

    Anti-alias for readability

    There is a slight difference, but I would not say much better. Incorporate you the dynamic text characters.

  • How to move text with styles between the docs? [CS 5.5 + JS]

    Here's what I have to get a document & insertion point reference:

      if (! app.selection[0] instanceof InsertionPoint) {
         alert("Your cursor must be a single insertion point! Try again.", "Insert single Word file");
          return;
     }
     var currDoc = app.documents[0];
     var importHere = currDoc.selection[0]
    

    I have the systematic Cleanup job, can enter the text cleaned with

     cleanupFrame.paragraphs.itemByRange(startFrame.paragraphs[0], startFrame.paragraphs[-1]).select();
     app.copy();
    
    

    But then, what? It should be simple enough to be invisible for me. I tried different things, but I have to need a boost.

    TIA.

    Use the Move() methods

    Moving text (to: LocationOptions[, reference: varies])

    Moves the text at the specified location.

    Parameter Type Description
    TO LocationOptions:
    LocationOptions.BEFORE
    LocationOptions.AFTER
    LocationOptions.AT_END
    LocationOptions.AT_BEGINNING
    LocationOptions.UNKNOWN
    The location relative to the object within the container object or reference.
    Reference Cell
    Column
    PageItem
    Line
    History
    Table
    Text
    The reference object. Note: Required when the parameter specifies before or after. Can accept: text, history, cell, row, column, Table or PageItem. (Optional)
  • Retrieves the paragraph formatting with style name

    All the

    kindly help me how to extract the name of definition with example.txt formatting:

    FOR EXAMPLE:

    Name of the style: "Body".

    Font = "15".

    head = "" 18"" "

    Aligh = "Left".

    etc...

    Concerning

    Hurix

    Change by Dave Saunders: something prevents the work answer button. I hope that this edition will reactivate it.

    Hi Hurix,

    Welcome.

    Please indicate the question as answered

    Add the properties you need by following the instructions in the 3rd line.

    Trevor

    // Export Specified Details of Documents ParagraphStyles By Trevor
    // http://forums.adobe.com/thread/1445961?tstart=0
    exportParagraphStyleDetails ("appliedFont pointSize spaceAfter spaceBefore"); // add property names separated by a space - The Style Name is included automatically
    // see http://jongware.mit.edu/idcs6js/pc_ParagraphStyle.html for a list of properties you can add
    
    function exportParagraphStyleDetails (props /* A string list of the desired properties */) {
        doc = app.activeDocument,
        ps = doc.paragraphStyles.everyItem().getElements().slice(0),
        l = ps.length,
        c = 0;
        props = props.replace(/\s+/g, " ").split(" ");
        pl = props.length;
            var styleDetails = [];
        while (l--) {
            var  myStyle = ps[l];
            styleDetails[c++] = "******************************************************************\rParagraph Style Name: " + myStyle.name + "\r******************************************************************"
            for (var n = 0; n < pl; n++) {
                styleDetails[c] = props[n] + ": " + myStyle[props[n]].toString();
                if (myStyle[props[n]].hasOwnProperty ("name")) styleDetails[c] = styleDetails[c].replace (/:.+/, ".name: " + myStyle[props[n]].name);
                c++;
            }
        styleDetails[c++] = "\r";
        }
    
        temp = new File (Folder (Folder.temp) + "/" + doc.name + " Paragraph Style Properties " + ("" + new Date).replace(/:/g,"\xB7").replace(/G\S+$/,"")+ ".txt");
        temp.encoding = "UTF-8";
        temp.lineFeed = ($.os[0]=="M") ? "Macintosh" :" Windows";
        temp.open('w');
        temp.write("\uFEFF" + styleDetails.join("\r"));
        temp.close();
        $.sleep(300);
        temp.execute();
    }
    
  • How to align to the left the mx:Text with a width?

    When I assign a width of mx:Text, the text becomes centered for some reason any. If I remove the width, so it won't wrap plus. How can I get the film and align left at the samt time?

    < mx:Text width = "50" text = "test test test test" horizontalAlign = "left" / >

    Use 'textAlign' instead of 'horizontalAlign'

    textAlign= "left" / >

  • Is it possible to paste a text with the style on Muse "stick style"?

    Is it possible to Copier 'style with' text from a word processing software, and stick with the style on Muse "Stick style" ?

    Unfortunately, you can't text 'with style' of external source to the Muse, the style will be lost. But you can try to create the same style of end of Muse.

    Thank you

    Sanjit

  • How to type vertical text from the bottom up with the right orientation for a graph?

    How to type vertical text from the bottom up with the right orientation for a graph?

    Hello! Below, I'll demonstrate how to have vertical text in two different ways.

    Example 1:

    1. below, I have a graph and want to label the vertical axis.

    Select the text tool, and then the Vertical text tool.

    2 with the vertical Type tool, I tap on my vertical label.

    3 with the move tool, then I can orient the text in a position desired, as shown in the examples below.

    If this isn't the desired orientation of the vertical type you would like. I have the example 2 below.

    Example 2:

    1. After typing my text vertically with the Vertical Type tool (in example 1), I want to move to a horizontal position. I can go up to the options panel and select the icon "show/hide text orientation", surrounded by below. It will pass the text back and forth between vertical and horizontal.

    2 after the passage of the text to be horizontal, I want to change the orientation of the text, so it is aligned with my vertical axis.  Go in Edit > transform > Rotate as shown below.

    3 you want to can Rotate the text as indicated below.

    4 text is not in the right position we want, so we have to move the text, as illustrated below. Press enter/return to perform the complete transformation.

    5. the text is shown below.

    Other links:

    Please post back with any questions,

    Janelle


  • changing value of text with the cursor

    Hi you all

    I need a help from your side

    I have created a slider and change the size of the listview text with the cursor

    Here is my code

     Slider {
                           id: slider
                            fromValue: 8.0
                            toValue: 16.0
                            value: 8.0
                            layoutProperties: StackLayoutProperties {
                                spaceQuota: 0.1
                            }
                            preferredWidth: 200.0
                            maxWidth: 250.0
                            preferredHeight: 20.0
                            visible: true
                            enabled: false
                            horizontalAlignment: HorizontalAlignment.Center
                   onImmediateValueChanged: {
    
    // descriptionText is the id of label
              descriptionText.textStyle.fontSize = FontSize.PointValue
               descriptionText.textStyle.fontSizeValue = immediateValue
                            }
    
                        }
    
    /***********************************************************************//
    i am adding data to listview using remote source
    
      Container {
                id: listviewContainer
    
                layout: StackLayout {
    
                }
                ListView {
                    id: myListView1
                    dataModel: dataModel1
                    //{
                    //  source: "asset:///models/xmldata.xml"
                    //      }
    
                    // Use a ListItemComponent to determine which property in the
                    // data model is displayed for each list item
                    listItemComponents: [
                        ListItemComponent {
                            type: "item"
                            Container {
                                rightPadding: 20
                                leftPadding: 20
                                horizontalAlignment: HorizontalAlignment.Center
                                verticalAlignment: VerticalAlignment.Center
                                layout: StackLayout {
                                    orientation: LayoutOrientation.TopToBottom
    
                                }
    
                                Container {
                                    topPadding: 40
    
                                    horizontalAlignment: HorizontalAlignment.Fill
    
                                    layout: DockLayout {
    
                                    }
                                    // The Item content container
                                    Container {
    
                                        verticalAlignment: VerticalAlignment.Top
                                        horizontalAlignment: HorizontalAlignment.Right
                                        layout: StackLayout {
                                            orientation: LayoutOrientation.RightToLeft
    
                                        }
    
                                    }
    
                                }
    
                                // Description text label
                                Label {
                                    id: descriptionText
                                 //
                               //     objectName: descriptionText
                                    //  leftMargin: 20
                                    horizontalAlignment: HorizontalAlignment.Right
                                    verticalAlignment: VerticalAlignment.Top
                                    text : ListItemData.des
                                    textStyle.color: Color.create("#868686")
                                    textStyle.textAlign: TextAlign.Justify
                                    multiline: true
                                    textFormat: TextFormat.Plain
                                    textStyle.fontSizeValue: 8.0
                                }
    
                        }
    
                    }
            ]
    
        }
    
        attachedObjects: [
            GroupDataModel {
                id: dataModel1
    
                // Sort the data in the data model by the "pubDate" field, in
                // descending order, without any automatic grouping
                sortingKeys: [ "date" ] //[ "pubDate" ]
                sortedAscending: false
                grouping: ItemGrouping.None
            },
            DataSource {
                id: dataSource1
                objectName: ""
                // Load the XML data from a remote data source, specifying that the
                // "item" data items should be loaded
                source:"http://10.121.10.139/simplehtmldom/getdescnews.php?newsid="+dataSource1.objectName
    
                query: "/news/property/"
                type: DataSourceType.Xml
    
                onDataLoaded: {
                    // After the data is loaded, clear any existing items in the data
                    // model and populate it with the new data
                    dataModel1.clear();
                    dataModel1.insert(data)
                    myIndicator12321.setRunning(false);
                    myIndicator12321.setVisible(false);
                    //      dataModel.insert(data)
    
                }
    
                    }
        ]
    }
    
    // in the end i am calling on creating complete
    
    onCreationCompleted: {
            // When the top-level Page is created, direct the data source to start
            // loading data
            dataSource1.load();
        }
    

    problem I am facing is, it does not find the descriptionText variable, which is the id of the label

    can someone help?

    OK, the problem is that listItemComponents attached to a control, such as ListView have their own context. ListItemComponent documentation refers to what I think. If you must do the following:

    1. do you have a property that is defined as an attribute of the ListView

    2 bind your fontSizeValue to listItemComponent tag to the ListView. Note, however, to do this, you need to get a reference to the ListView using your label ListItem.view is found in the container. Not obvious, I know.

    3. do you have your cursor to update the property you have defined for the ListView.

    Cursor---> p_font_size ListView property<---------->

    Like this:

    {To ListView
    ID: myListView1
    property real p_font_size: 10

     

    listItemComponents:]
    {ListItemComponent}
    type: 'point '.
    ID: sample

    {Of container
    ID: mainListViewContainer

    {Label
    ID: descriptionText

    ..........
    textStyle.fontSize: FontSize.PointValue
    textStyle.fontSizeValue: mainListViewContainer.ListItem.view.p_font_size

    }

    and elsewhere on your page

    Slider {}
    ID: slider

    fromValue: 8.0
    toValue: 16.0
    value: 8.0
    layoutProperties: {StackLayoutProperties}
    spaceQuota: 0.1
    }
    preferredWidth: 200.0
    maxWidth: 250,0
    preferredHeight: 20.0
    visible: true
    enabled: true
    horizontalAlignment: P

    onImmediateValueChanged: {}
    myListView1.p_font_size = immediateValue
    }
    }

    I test it and it works. Please make this response as the solution if it works for you too :-)

Maybe you are looking for