Forum Replies Created
-
AuthorPosts
-
Ari Singer
MemberGlad it works. I’m afraid that when copying and pasting you brought along a preceding or following space without noticing. And when you decided to type it in you unknowingly deleted that space so everything started working correctly.
Hatzlacha Raba!
Ari Singer
MemberMake sure the search scope is set to Document or to Story and not to Selection or To End Of Story.
Ari Singer
MemberTry omitting everything except the ~F wildcard, so the settings would look like this:
Find What:
~F
Find Format: Paragraph Style: “footnote”, Character Style: “Hebrew text”
Change Format: Character Style: “[None]”Ari Singer
MemberNo, you don’t change that. Can you please tell me what it says when the syntax error pops up?
Ari Singer
MemberThat’s because Include Footnotes is turned off. Turn it on, use the
~Fwildcard and it should work.Ari Singer
MemberNo, the width is only in points if it’s set up in the prefs.
I added a few lines to the script to automatically change the prefs to points, and then set it back to what it was before.
var myDoc = app.activeDocument;
with (myDoc.viewPreferences){
var myOldXUnits = horizontalMeasurementUnits;
var myOldYUnits = verticalMeasurementUnits;
horizontalMeasurementUnits = MeasurementUnits.points;
verticalMeasurementUnits = MeasurementUnits.points;
}
//At this point, you can perform any series of script actions
var myWidths = [100, 100, 150, 150];
for(var T=0; T < myDoc.textFrames.length; T++){
for(var i=0; i < myDoc.textFrames[T].tables.length; i++){
for(var j=0; j < myWidths.length; j++){
myDoc.textFrames[T].tables[i].columns[j].width = myWidths[j];
}
}
}
alert(“Table width updated successfully…”);
with (myDoc.viewPreferences){
try{
horizontalMeasurementUnits = myOldXUnits;
verticalMeasurementUnits = myOldYUnits;
}
catch(myError){
alert("Could not reset custom measurement units.");
}
}
Ari Singer
MemberYou can have the cake and eat it too.
I always define the auto leading percentage in the paragraph style settings so that when I decide to change the size of the paragraph it adjusts accordingly. But in the case when I want to change the size of a particular character(s) in the paragraph, instead of overriding it locally (which is a typography sin…) I apply to it an appropriate character style with a lower leading value than the paragraph’s. So unless these characters take up an entire line, the leading stays the same in the entire paragraph.
Ari Singer
MemberI don’t understand why using auto-leading should be avoided. Yes, every typeface needs its own leading and the default auto-leading won’t do, but for that I define in the paragraph style (under Justification › Auto Leading) the auto-leading percentage that I like for that particular font. So that when I decide to change the size of the text, the leading will mirror that immediately with the appropriate percentage.
Ari Singer
MemberMaybe you to set up the Reference Point Proxy to the center box.
Ari Singer
MemberMake sure that you ‘entered’ the text frame on the master page by double-clicking and that the cursor is flashing inside the frame. Then try again. It should work now.
Ari Singer
MemberI would create a template from the first doc, and then copy the content from the supplied doc to the template.
And before you do anything make sure all local overrides are properly formatted with character styles. It takes a second. Just fire up Find/Change. In the Find Format field select Italics, and in the Change Format field select your Italics character style. Make sure the scope is the entire document or story and hit Change All. Do the same for bold or any local overrides you want to retain.
Ari Singer
MemberThis is JavaScript.
I’m afraid you included his comments in the script, without ‘commenting it out’. The script should look like this:
// Number of columns in a table may vary depends on the book.
// If the columns count is constant then you can use the below script.
var myDoc = app.activeDocument;
var myWidths = [100, 100, 150, 150];
for(var T=0; T < myDoc.textFrames.length; T++){
for(var i=0; i < myDoc.textFrames[T].tables.length; i++){
for(var j=0; j < myWidths.length; j++){
myDoc.textFrames[T].tables[i].columns[j].width = myWidths[j];
}
}
}
alert(“Table width updated successfully…”);
// In the above script i declared the 4 columns width(s) as 100pt, 100pt, 150pt & 150pt. Change width acording to your requirement.
// I think this will give you the solution.
Make sure to save it as a .jsx file and place it in the Scripts panel and run it from there.
Ari Singer
MemberI appreciate the kind words.
Ari Singer
MemberFollow these steps carefully. it may seem daunting, but it’s not.
- On the master page, create two text frames with equal height. One should be in the center of the top half of the page, and one in the center of the bottom half of the page. (So when it’s folded in the center you have a ‘tent card’)
- Rotate the top frame 180° so that any text inside will be rotated
- Right click on the bottom frame and check Primary Text Frame. So now this frame will be automatically unlocked on all pages, and all pages will flow from one to the next automatically
- Make sure to set up both frames’ vertical justification to Align Center
- Create a paragraph style for the names that you’re gonna use, and make sure it is only used for the names (let’s call the style “card names”)
- Define the style to your liking, but make sure to go into the Keep Options pane and from the Start Paragraph dropdown menu select On Next Page and save it
- Duplicate the style (so that the duplicate is based on the “card names” paragraph style) and name it something like “card names 2”
- On the master page, place your cursor in the top (rotated) text frame that you created before. Go to Type › Text Variables › Define. Double click the bottom option Running Header and a dialog box appears.
From the Type dropdown menu select Running Header (Paragraph Style).
From the Style dropdown menu select card names (or any name that you gave for the names pararaph style). Hit OK.
Now in the dialog box that remained open select Insert and hit Done.
You should have the rotated words “‹Running Header›” in the top frame. Select this text and apply the second paragraph style that you created (“card names 2”) - Now you’re all ready to roll! Go onto the page (not the master) and place your cursor in the bottom text frame (that should be unlocked because it’s a primary text frame), select the “card names” paragraph style and start typing. Any text that you type will instantly be mirrored by the rotated text frame above! And when you hit ‘enter’, a new page will be created with the text flowing into that page, and anything you type on that page will be mirrored as well on that page!
Go ahead, enjoy your new-found knowledge!
-
AuthorPosts
