Implement 'Apply Style unless'
Hello
In web design you can create exceptions by saying: If something happens after, or nearby, to do this. IE (css): h1 + p {margin-top: 0px ;}}
Is it possible to do it in InDesign?
I want to give InDesign training: "Apple a paragraph before of 3mm except IF a paragraph style {'title'} ' I want a 'before' larger paragraph on the body of the text when it follows a paragraph in the same style and a narrower paragraph"before"when it follows a cap.
Thank you
Nope, InDesign does not have conditional styles. It would be very useful
feature and you should consider filing a feature request.
It should always do everything manually - define a separate paragraph
for each difference in style and apply the styles to paragraph manually. Then
you have a style called "Subtitle A" and another called "subtitle has."
After the title of the chapter"etc etc.
To help keep things under control, it is probably worth taking the time
to create groups of style paragraph and the different, but related,.
in their own paragraph styles group. But it is purely a
organizational thing - it does in fact no additional functionality.
Cut out the tedious process of having to go through all your
document by applying right paragraph styles, I sell a script on my
website (www.freelancebookdesign.com) called "changes".
Paragraphs', that allows to say something like: "whenever the subtitle.
is followed by the title of the chapter, replace the subtitle A with
Sous-titre-A-suite-chapitre-titre"etc. It passes then through the
document and made the necessary adjustments. Many people use this
script to save hours of tedious work. Worth a visit if you
do a lot of it, I think.
Ariel
Tags: InDesign
Similar Questions
-
AppleScript to apply styles of table and cell in IDCS4
I have an Applescript script to format all the tables in a document as I want. It is adapted from a previous version that did not use styles, that works perfectly. This script creates styles if they are not present and this bit works fine, but when it starts to try to apply them to the tables, it falls.
tell application "Adobe InDesign CS4" tell active document set BlackColor to color "Black" set SolidStroke to stroke style "Solid" end tell tell active document try set myTablePara to paragraph style "4.2 Table text" on error set myTablePara to make paragraph style with properties {name:"4.2 Table text", applied font:"Helvetica Neue", font style:"Regular", point size:"8.5", leading:"10"} end try try set myBasicCell to cell style "Basic cell" on error set myBasicCell to make cell style with properties ¬ ¬ {name:¬ "Basic cell", bottom edge stroke weight:0 ¬ , bottom edge stroke color:BlackColor ¬ , bottom edge stroke type:SolidStroke ¬ , right edge stroke weight:0 ¬ , right edge stroke color:BlackColor ¬ , right edge stroke type:SolidStroke ¬ , top edge stroke weight:0 ¬ , top edge stroke color:BlackColor ¬ , top edge stroke type:SolidStroke ¬ , left edge stroke weight:0 ¬ , left edge stroke color:BlackColor ¬ , left edge stroke type:SolidStroke ¬ , left inset:¬ "0p4", right inset:¬ "0p4", top inset:¬ "0p4", bottom inset:¬ "0p4", vertical justification:top align ¬ , applied paragraph style:myTablePara} end try try set myHeader to cell style "Header" on error set myHeader to make cell style with properties ¬ {name:¬ "Header", based on:myBasicCell ¬ , bottom edge stroke weight:¬ "0.5pt", top edge stroke weight:"0.75pt", vertical justification:bottom align ¬ } end try try set myFooter to cell style "Final Row Cell" on error set myFooter to make cell style with properties ¬ {name:¬ "Final Row Cell", based on:myBasicCell ¬ , bottom edge stroke weight:¬ "0.75pt"} ¬ end try try set myLeftCol to cell style "First Column Cell" on error set myLeftCol to make cell style with properties ¬ {name:"First Column Cell", based on:myBasicCell, left inset:0} end try try set myLeftHeader to cell style "First Row, First Column Cell" on error set myLeftHeader to make cell style with properties ¬ {name:"First Row, First Column Cell", based on:myHeader, left inset:0} end try try set myLeftFooter to cell style "First Column Last Row Cell" on error set myLeftFooter to make cell style with properties ¬ {name:"First Column Last Row Cell", based on:myFooter, left inset:0} end try try set myTableStyle to table style "Horizon" on error set myTableStyle to make table style with properties {name:¬ "Horizon", body region cell style:¬ myBasicCell, header region cell style:¬ myHeader, footer region cell style:¬ myFooter, left column region cell style:myLeftCol} end try end tell set allTables to every table of every story of active document repeat with i from 1 to count of allTables set myTable to item i of allTables set table style of myTable to myTableStyle set properties of cells of myTable to ¬ {cell style:myBasicCell} set properties of cells of first column of myTable to ¬ {cell style:myLeftCol} set properties of cells of first row of myTable to ¬ {cell style:myHeader} set properties of cells of last row of myTable to ¬ {cell style:myFooter} set properties of first cell of first row of myTable to ¬ {cell style:myLeftHeader} set properties of first cell of last row of myTable to ¬ {cell style:myLeftFooter} clear cell style overrides clear table style overrides end repeat end tell
When it is to 'set style table of myTable to myTableStyle' it is said ' impossible to define style table id of the table to text frame id page id 220 190 of spread id 185 [the first table] document \"Untitled-1\" table style id 264 [style newly generated] document \"Untitled-1\" 224 " But I can't tell why. Can anyone help?
Table and cell styles are objects. When you want to apply, you must set the appropriate properties that are 'applied the style of table"and"cell style ". So: «the game applied style table myTable...» »
But in terms of results, you'll be probably happier using the commands ' apply the style of table cell / ' instead, which allows you to clear the replacements.
--
Shane Stanley [email protected]>
AppleScript Pro Sessions http://scriptingmatters.com/aspro>
-
I am trying to apply the backstory to the other lines of text by creating two paragraph styles and assigning to each as "next" style
This works when manual text entry - but I don't know if it is possible to apply it to an existing copy with over apply the styles to each line individually.
Thanks for any help
d
Select several paragraphs of text, then right-click on the name of your first style in the paragraph Styles Panel. ' Apply the Style, then next Style "should be one of the options.
-
Applied styles are not displayed in preview or generated the file
I added a number of new styles to my style sheet. They show well in my view Design. However, once I have applied, and then click the Preview button or even generate webhelp to see what they look like generated, the styles are not displayed to the top. What Miss me?
BTW... I use RH10.
Thank you!
Ko
OK... I just browsed my updated help and found 2 "{" media that were out of place! Oh my god... I'm sorry... but I KNEW it had to be something simple I was missing... but I really had to go through it with a fine-tooth look.
Thank you! SORRY FOR THE BLONDENESS ONCE MORE!
-
Paragraph Reg.Apply style
Hi all
Can you please someone help me that how to apply the paragraph style that is available in Indesign with case-insensitive in find/change grep options.
I tried with the code below, but style applying only with case-sensitive.
myStyleName = myString.substring (1, myString.length - 1);
If (myDocument.paragraphStyles.Item (myStyleName) == '[object ParagraphStyle]')
{
myStyle = myDocument.paragraphStyles.item (myStyleName);
myName = myStyle.name;
app.findChangeTextOptions.caseSensitive = false;
app.changeTextPreferences.appliedParagraphStyle = myStyle;
myDocument.changeText ();
app.changeTextPreferences = NothingEnum.nothing;
app.changeTextPreferences.changeTo = "";
myDocument.changeText ();
app.changeTextPreferences = NothingEnum.nothing;
}
Please, help me to understand this question.
Thanks in advance.
Kind regards
Rani Sathya M
Hi Jarek,
The case suggested work is fine. I solved the problem by treating the style with uppercase names as you say lower case.
Thank you very much for your support!
~ Sathya Rani M
-
Table of contents not applying style does not correctly
I have an InDesign document of basic test with a "paragraph A Style" applied to a few main headings in the document. I created a "paragraph Style B" separate for the TOC to represent instances of a paragraph Style A. Style is set in 8pt font. Style B is set to 14pt font. When I place the Table of contents in the dialog box, I chose the Style A appear as Style B, but when I actually put the table of contents, it always appears in A Style. Any ideas as to why?
InDesign CS5 version 7.0
Windows XP SP3
Same problem on two different computers (with the same configuration as shown above)
You might also look to see if you apply a character style to the text.
-
Design view does not display the applied styles
Yesterday, this was not the case, but it is today. When I opened one of the sites to change some things on one of the page, I noticed that although the CSS styles have been applied to the police, the design view has been not to show it. If I saw in the browser or if I downloaded the page and look on the net everything was fine... but my view desing workspace would not show the style changes, I did. He would have the list of available styles, but that's all. I noticed that this is the case for all sites. I accidentally change something? What's the deal? Could really use your help.Is view > Style made > checked display Styles?
--
ConcerningJohn Waller
-
Apply styles to the dynamic text
I'm dynamically loading text (from a .txt file) in a box of text at runtime via a URLLoader. The text is htmlText in the TextArea. I use a component TextArea (editable = false) so I can get scrollbars if I need them. I have an external stylesheet in which I for the text box set base models. These styles are applied, but I can't class styles (for example, the styles for h1) to apply. In my .txt file, html work ("BOLD" < b > < /b >) tags, but when I try to apply specific styles such as a type selector or a class selector, these styles do not appear in the text that fills the text box.
I tried to load a stylesheet using StyleManager.loadStyleDeclarations ('styles.swf') running. I tried to create a stylesheet with ActionScript and the StyleSheet object. Someone at - it any other suggestions?Hey! I thought about it. It is not as gracious I want, but it works. In addition, I had 'a href' links in the text dynamically loaded to call JavaScript functions from outside the application (in the package).
-
Strikes to apply styles to paragraph Muse?
I am typing text directly in the Muse.
How to make paragraph styles using keystrokes instead of going in the paragraph Style Panel and clicking a style name?
Doesn't look like there are keyboard shortcuts for what you're trying to do. See keyboard shortcuts for Adobe Muse
-
How to avoid overwriting the italics when you apply paragraph styles?
First of all, let me say thank you to the community of Adobe's Forum for the great help over the years! You Rock! 9 times out of 10 you nail!
OK, so I have a long document full of italics, bold and accents. Successfully, I imported the text in MS Word and kept these text features using the import options. But now, when I go to apply paragraph styles, the italics are lost. Is it possible to implement paragraph styles so that they maintain Roman, italic, bold and also special characters like accents? Thank you!
Hi David: I just put upward (and record) queries for search/replace that I of course after you import all text. For example, I have one that is italic in the document and it goes to a character called italic style. Once I saved queries, it is very fast to run on all the stories at the same time. And once the local formatting is managed through character styles, it is intact by assigning paragraph styles.
~ Barb
-
Apply a color style to a selectOneChoice in a table
Hello
I created a table in which there are several types of objects like the outputText and selectOneChoice.
<af:table value="#{bindings.AegEnteteView1.collectionModel}" var="row" rows="#{bindings.AegEnteteView1.rangeSize}" emptyText="#{bindings.AegEnteteView1.viewable ? 'No data to display.' : 'Access Denied.'}" rowBandingInterval="0" selectedRowKeys="#{bindings.AegEnteteView1.collectionModel.selectedRow}" selectionListener="#{bindings.AegEnteteView1.collectionModel.makeCurrent}" rowSelection="single" fetchSize="#{bindings.AegEnteteView1.rangeSize}" id="t1" binding="#{backingBeanScope.backing_export1_gestion_aeg.t1}" scrollPolicy="page" partialTriggers=":::b1"> <af:column headerText="#{sigifappcentralBundle.SOCI_U00E9T_U00E9}" id="c17" width="180"> <af:selectOneChoice value="#{row.bindings.Idsocieteae.inputValue}" label="#{row.bindings.Idsocieteae.label}" required="#{bindings.AegEnteteView1.hints.Idsocieteae.mandatory}" shortDesc="#{bindings.AegEnteteView1.hints.Idsocieteae.tooltip}" readOnly="true" id="soc3"> <f:selectItems value="#{row.bindings.Idsocieteae.items}" id="si3"/> <f:validator binding="#{row.bindings.Idsocieteae.validator}"/> </af:selectOneChoice> </af:column> <af:column headerText="#{sigifappcentralBundle.REF__USINE}" id="c5" width="100"> <af:outputText value="#{row.Refusineae}" shortDesc="#{bindings.AegEnteteView1.hints.Refusineae.tooltip}" id="ot5"/> </af:column>...
Later, I applied styles to the table so that when I walk through the cursor, the line changes color and written too.
af|table::data-row:highlighted af|column::data-cell, af|column::data-cell:hover { background-color:#82C138; color: red; }
My problem is that only the outputText columns act as if I expected (color change to move the mouse); on the selectOneChoice, written columns keep their color even
Thank you
The superimposition of selectOneChoise cell. You need the selectOneChoice too to get the effect desired skin.
Timo
-
ID CC 2015 crashes as soon as I (try to) apply the paragraph style to the text.
I work on a Mac Pro (mid-2009), OS X 10.10.4, 16 GB of RAM
Original hard drive is 1 TB (where applications are installed), second drive (designated as working drive, and where all the work files are housed) is 2 TB.
Currently subscribe to Adobe CC 2015, using InDesign with last update
I have been working for several days on a long paper (paper) and have developed 12 paragraph styles, using two fonts - Garamond first Pro and Helvetica Neue LT and the document has facing pages.
Yesterday, my client (the author) has asked all text flow on the odd pages, for illustrations on all pages, so I did all the text boxes thread directly downward of pages on the right (odd pages).
The first three chapters were style before I changed the threading of text box. Now, when I open the document and begin to apply styles to paragraph for the rest of the text (nine more chapters, which automatically adopted the style of main text as soon as I stuck in the newly-threaded text boxes), ID crashes when I highlighted a section of text and click a paragraph style.
I checked the permissions and preferences. The only thing I can think is from the document from scratch.
Any other suggestions?
Thread the text boxes only on odd pages cause the problem, since it does not have facing pages?
Thank you.
There could be corruption in the document.
Save the document with IDML and reopen the IDML in InDesign.
-
OBIEE 11 g ignoring custom styles after a space in implementing in the form
Hello
All the world encountered this strange glitch?
I apply styles to our company new skin, and it's all working very well until I enter a piece of code like this:
. QCPageColumnSectionSidebar {padding-bottom: 1px; width: 100%; border: 1px solid #000080; background-color: #dce4f9 ;}}
It seems that as soon as OBIEE detects the spaces in the CSS formatting, he escapes and ignores the rest. In this case, the border is applied, but the background color does not work. If I swap the places of the two classes, then the background color is applied and the border is not.
In addition, all of the styles defined after this style are ignored.
When I inspect element in Firebug, I see this behavior to come through on the side of the presentation. The CSS that follows the style with a space that is not appear.
The default defined styles have very similar styles and they seem to work; anyone has an idea why my custom styles are not?
Thanks in advance,
Kristacan you try to manually write the same code with spaces instead of paste in css file.
-
Is there a script to apply a certain style to thousands of words arranged in a list?
Hello, I tried to use FindChangeByList, but I do almost all the work of collage every word on the legs, so I might as well apply the styles to the hand.
So my plan is to apply the same style to near 11 000 words that appear in a book. These words are for most of the names and marks, and they appear throughout the whole of the text, it would be quite tedious to manually apply this style.
I have these words put aside in a list.txt
Anyone know if I could use it in any script and apply the style automatically?
Like I said, sticking each word in FindChangeByList is out of the question, just like applying style verbatim, it would still...
... Thank you!
Piece of cake. Since you do not specify, this script assumes that your text file is called "list.txt" and is located in your folder (line 1) user documents, and your style is a Style of character called "yourStyle" (line 9).
textFile = File(Folder.myDocuments+"/list.txt"); if (textFile.open("r") == false) { alert ("yeah ... that file does not exist"); exit(0); } strs = textFile.read (); textFile.close(); strs = strs.split("\n"); app.findGrepPreferences = null; app.changeGrepPreferences = null; app.changeGrepPreferences.appliedCharacterStyle = app.activeDocument.characterStyles.item("yourStyle"); while (strs.length > 0) { app.findGrepPreferences.findWhat = "\\b"+strs.pop()+"\\b"; app.activeDocument.changeGrep(); }
-
Clicking on a paragraph Style does not apply text Style
I just switched from a PC to a whole new MacBook Pro (OS x 10.7 Lion), and InDesign CS5.5 bought. I use CS4 on a PC for a few years and had no problems. For some reason, I can't apply Styles to paragraph by moving my cursor in the text and clicking the paragraph style. It highlights the style clicked for a while and then goes to value all styles, but does not apply the changes. The only way I can apply a Style of paragraph right now is click with the right button on the style and selecting 'apply... '. "in the menu dropdown. It is very curious. I was wondering if anyone had experience with this. I also have Microsoft Office: Mac 2011 installed on the laptop, if it makes a difference to anyone. Any help would be greatly appreciated, since I dial and change my life, and this problem slows me down a bit.
Right on any of the third party plug-ins. It was actually 'good Zoom '. A third-party application that corrects some native zonky zoom behavior for Mac. I disabled it, and it has cleared up the problem. It's pretty strange, however, isn't it? Thanks for your help!
Maybe you are looking for
-
restoration of the sound on laptop Hp 650
my laptop HP650 product is more sound whenever I'm playing or watching vedio. can someone help me?
-
2 GB Clip watch songs installed, but cannot access
Bought my wife a 2 GB Clip when she makes the workouts. My son ripped and transferred songs and they show installed but when she goes to the access that they are no where. My son had his Clip GB 4 for quite awhile and has no problem whatsoever. Wh
-
Internet has stopped working (viral)
Hey all,. I was going around navigation on gaming sites when all of a sudden, I get a lot of pop ups (there is no application that warned me on my computer so I thought that it is just another phishing attempt) warning me there is a malware/Trojan at
-
MD1220 disk expansion &; expansion / resize virtual disk
I seek to add 6 new MD1220 to a current configuration of 6 who are chained together. Two quick questions on this... (1) is there as a limit to how many MD1220 can be connected? (2) once the virtual disks were created in all of my original 6 devices,