Forum Replies Created
-
AuthorPosts
-
Matt Isaac
ParticipantBrendan, using Kai’s script will change the measurements based on your ruler preferences. If you want to specify the units you will need to put the numbers in quotations with the unit after (eg. “5.5pt”; instead of 5.5).
Matt Isaac
Participant/*
Sorry, I forgot about the option to cancel the script in the previous script. If you canceled the previous script it would still change the margins. This script has been updated so if the dialog box is canceled the margins won’t change.
Scripted by Skemicle
*/
if (parseFloat(app.version) < 6)
main();
else
app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Adjust Pasteboard Margins");
function main() {
var win = app.dialogs.add({name:"Adjust Pasteboard Margins"});
with (win.dialogColumns.add()){
staticTexts.add({staticLabel:"Set pasteboard top/bottom margins to:"});
staticTexts.add({staticLabel:"Set pasteboard left/right margins to:"});
}with(win.dialogColumns.add()){
var tbMarginField = textEditboxes.add({editContents:"1"});
var lrMarginField = textEditboxes.add({editContents:"5"});
}if(win.show() != 1){exit()}
var tbMargin = lrMarginField.editContents;
var lrMargin = tbMarginField.editContents;
app.activeDocument.pasteboardPreferences.pasteboardMargins = [tbMargin,lrMargin];
}Matt Isaac
Participant/* Scripted by Skemicle */ if (parseFloat(app.version) < 6) main(); else app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Adjust Pasteboard Margins"); function main() { var win = app.dialogs.add({name:"Adjust Pasteboard Margins"}); with (win.dialogColumns.add()){ staticTexts.add({staticLabel:"Set pasteboard top/bottom margins to:"}); staticTexts.add({staticLabel:"Set pasteboard left/right margins to:"}); }with(win.dialogColumns.add()){ var tbMarginField = textEditboxes.add({editContents:"1"}); var lrMarginField = textEditboxes.add({editContents:"5"}); }win.show(); var tbMargin = lrMarginField.editContents; var lrMargin = tbMarginField.editContents; app.activeDocument.pasteboardPreferences.pasteboardMargins = [tbMargin,lrMargin]; }
This script will give a UI for the user to determine top/bottom and left/right margins. Line 11 can be used as a one line piece of code replacing “tbMargin” and “lrMargin” with the desired values.
For information on installing and using this script see https://creativepro.com/how-to-install-a-script-in-indesign-that-you-found-in-a-forum-or-blog-post.php.Matt Isaac
ParticipantThis article should tell you how to do that. https://creativepro.com/create-spread-numbers.php.
The article goes for one side of the document but can be set up on both sides.Matt Isaac
ParticipantI believe “InDesign CC” should be followed by the year. (eg. “InDesign CC 2015”)
Matt Isaac
ParticipantIf you are typing the diary as you work, one way you could do this is by applying the body style as the next style for the date header. Then create a character style with only an underline and set that as a grep style in the body to text:
^.+\z
. If you do it this way, you will want to put in a right indent tab (Shift+Tab) at the end of the last line. Though I’m sure Kai will have a better solution when you provide before/after screenshots. :)This won’t work if your last paragraph is more than one line.
Matt Isaac
ParticipantOr you could use the align “align away from spine” feature if you are just changing the alignment on even/odd pages.
Matt Isaac
ParticipantYou will need a new paragraph for each additional sequence (e.g. If you want to go to 1.A.a, you will need three paragraph styles. One for the 1, the A and the a.) For sublists you need to make sure each numbering section is in the same list with a level higher than the previous sequence and you’ll need to check “continue from previous number” and “restart numbering at this level after:” and choose “any previous level”
https://creativepro.com/multi-level-automatic-numbering-in-indesign.php
Matt Isaac
ParticipantIf all of your numbered lists are to stay in one text box each you could set the list to not continue across stories. Then each new text frame will start over. If you needed one list to carry over you could use a threaded text frame.
Matt Isaac
ParticipantAfter posting i realized that all of the periods need to be escaped in the abbreviations..
//DESCRIPTION:Expand US State Abbreviations if (app.version < 6) doReplace(); else app.doScript(doReplace, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Expand State Abbreviations"); function doReplace () { var a; var abbrevs = [ [ "Alabama", "Ala." ], [ "Arizona", "Ariz." ], [ "Arkansas", "Ark." ], [ "California", "Calif." ], [ "Colorado", "Colo." ], [ "Connecticut", "Conn." ], [ "Delaware", "Del." ], [ "District Of Columbia", "D.C." ], [ "Florida", "Fla." ], [ "Georgia", "Ga." ], [ "Illinois", "Ill." ], [ "Indiana", "Ind." ], [ "Kansas", "Kan." ], [ "Kentucky", "Ky." ], [ "Louisiana", "La." ], [ "Maryland", "Md." ], [ "Massachusetts", "Mass." ], [ "Michigan", "Mich." ], [ "Minnesota", "Minn." ], [ "Mississippi", "Miss." ], [ "Missouri", "Mo." ], [ "Montana", "Mont." ], [ "Nebraska", "Neb." ], [ "Nevada", "Nev." ], [ "New Hampshire", "N.H." ], [ "New Jersey", "N.J." ], [ "New Mexico", "N.M." ], [ "New York", "N.Y." ], [ "North Carolina", "N.C." ], [ "North Dakota", "N.D." ], [ "Oklahoma", "Okla." ], [ "Oregon", "Ore." ], [ "Pennsylvania", "Pa." ], [ "Rhode Island", "R.I." ], [ "South Carolina", "S.C." ], [ "South Dakota", "S.D." ], [ "Tennessee", "Tenn." ], [ "Vermont", "Vt." ], [ "Virginia", "Va." ], [ "Washington", "Wash." ], [ "West Virginia", "W.Va." ], [ "Wisconsin", "Wis." ], [ "Wyoming", "Wyo." ] ]; app.findGrepPreferences = app.changeGrepPreferences = null; for (a in abbrevs) { app.findGrepPreferences.findWhat = abbrevs[a][1]; app.changeGrepPreferences.changeTo = abbrevs[a][0]; app.findGrepPreferences.appliedParagraphStyle = "scholarship winner"; app.activeDocument.changeGrep(); } app.findGrepPreferences = app.changeGrepPreferences = null; }
This code will be the one you should use unless Ari comes up with something better. =P
Matt Isaac
ParticipantThe problem was in the findGrepPreferences with the word boundary. Removing the boundaries worked for me. Also the single quotes around the 6 were removed (with the quotes it would not use the undo feature.)
This code should work//DESCRIPTION:Expand US State Abbreviations if (app.version < 6) doReplace(); else app.doScript(doReplace, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Expand State Abbreviations"); function doReplace () { var a; var abbrevs = [ [ "Alabama", "Ala." ], [ "Arizona", "Ariz." ], [ "Arkansas", "Ark." ], [ "California", "Calif." ], [ "Colorado", "Colo." ], [ "Connecticut", "Conn." ], [ "Delaware", "Del." ], [ "District Of Columbia", "D.C." ], [ "Florida", "Fla." ], [ "Georgia", "Ga." ], [ "Illinois", "Ill." ], [ "Indiana", "Ind." ], [ "Kansas", "Kan." ], [ "Kentucky", "Ky." ], [ "Louisiana", "La." ], [ "Maryland", "Md." ], [ "Massachusetts", "Mass." ], [ "Michigan", "Mich." ], [ "Minnesota", "Minn." ], [ "Mississippi", "Miss." ], [ "Missouri", "Mo." ], [ "Montana", "Mont." ], [ "Nebraska", "Neb." ], [ "Nevada", "Nev." ], [ "New Hampshire", "N.H." ], [ "New Jersey", "N.J." ], [ "New Mexico", "N.M." ], [ "New York", "N.Y." ], [ "North Carolina", "N.C." ], [ "North Dakota", "N.D." ], [ "Oklahoma", "Okla." ], [ "Oregon", "Ore." ], [ "Pennsylvania", "Pa." ], [ "Rhode Island", "R.I." ], [ "South Carolina", "S.C." ], [ "South Dakota", "S.D." ], [ "Tennessee", "Tenn." ], [ "Vermont", "Vt." ], [ "Virginia", "Va." ], [ "Washington", "Wash." ], [ "West Virginia", "W.Va." ], [ "Wisconsin", "Wis." ], [ "Wyoming", "Wyo." ] ]; app.findGrepPreferences = app.changeGrepPreferences = null; for (a in abbrevs) { app.findGrepPreferences.findWhat = abbrevs[a][1]; app.changeGrepPreferences.changeTo = abbrevs[a][0]; app.findGrepPreferences.appliedParagraphStyle = "scholarship winner"; app.activeDocument.changeGrep(); } app.findGrepPreferences = app.changeGrepPreferences = null; }
July 18, 2016 at 7:25 am in reply to: How do I place an EPS in InDesign with a transparent background? #86561Matt Isaac
ParticipantPhotoshop EPS embeds a bitmap image in a EPS file and isn’t capable of saving transparencies. Try saving as a PNG or creating the logo in illustrator and exporting from illustrator as EPS.
Matt Isaac
ParticipantCcan you upload a screenshot to drive or aanother image hosting website and provide tthe link to us so that we can maybe see what iit is you’re going for and what the problem mmight be?
Matt Isaac
ParticipantAlso make sure you don’t have a nested style that might override the GREP style as well.
Matt Isaac
ParticipantCan you provide a screenshot of your three section paragraph style numbering tabs? This may help in determining the cause of the restart. You will need to upload to an image hosting site and provide a link.
-
AuthorPosts