• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

NUMERAÇÃO DE PÁGINAS

New Here ,
Dec 04, 2023 Dec 04, 2023

Copy link to clipboard

Copied

Alguem poderia me ajudar? Fazendo um livro que os versos das páginas não contarão na numeração. Como faço para que numeração conte apenas nas páginas ímpares sendo que continuará 1,2,3,4... mas somente nas frentes. Obrigado. É urgente.

TOPICS
How to

Views

84

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 04, 2023 Dec 04, 2023

Copy link to clipboard

Copied

 

Best to do it manually - through threaded text frames on each page.

Create an excel file and setup the numbers there - easy to do in excel

then copy and paste them. 

 

If you setup a Page number text frame on your master page - you can then thread your page numbers from page to page

 

I tried to create a script that will do it - but I can't get it to work... beyond my experience.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 05, 2023 Dec 05, 2023

Copy link to clipboard

Copied

Obrigado. Essa alterativa vai me ajudar muito.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 05, 2023 Dec 05, 2023

Copy link to clipboard

Copied

Here's a variant of an existing script that numbers your odd pages. (In fact, the script numbers any page with a folio frame on it or its applied master page.)

 

First add a text frame on your master page for the page number. Label the frame folio on the Layers panel. Then run the script. If you add or remove any pages, simply run the script again.

 

(function () {

  var indd = app.documents[0];
  var pages = indd.pages.everyItem().getElements();
  var folio = 0;
  var frame;

  //--------------------------------------
  // If there's a frame on the page, return it.
  // Otherwise, try to override one.
  
  function getFrame (page) {
    var f = page.textFrames.item ('folio');
    if (f.isValid) {
      return f;
    }
    var m = page.masterPageItems;
    for (var i = 0; i < m.length; i++) {
      if (m[i].name === 'folio') {
        return m[i].override (page);
      }
    }
    return null;
  }
        
  //==================================================

  for (var i = 0; i < pages.length; i++) {
    frame = getFrame (pages[i]);
    if (frame) {
      frame.parentStory.contents = String (++folio);
    }
  }

}());

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 05, 2023 Dec 05, 2023

Copy link to clipboard

Copied

LATEST

Obrigado. Vou realizar os testes.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines