Selecting a paragraph style
Hi All,
I am working on InDesign CS3, I am looking for an API/Command using which I could select a paragraph style.
I am elaborating my problem as follows
In paragraph style palette we have a default paragraph style called "Basic paragraph"
I have created another paragraph style say "Paragraph Style 1"
Now I want to select "Paragraph Style 1" as a default style for the newly created story
If anybody knows about this then please help me
Thanks and Regards,
Alam
We can any style to default style by processing kDefaultTextStyleCmdBoss
Similar Messages
-
How do I stop ID from assigning a paragraph style to the TABLES?
In-Design is adding "H1" paragraph style to EVERY table is inserted, so the table headers formatting is affected by that H1 style.
I guess it chooses H1 because it's the FIRST style I created (and then modified the "basic paragraph" to modify the rest of default text).
It's like it's adding "Style_ID=1"
I tried placing the character in different places, to make sure it's not the style the cursor is in which is inherited, and no, no matter where I place the cursor, when I "insert table" the cursor is automatically placed into the first cell (header cell) and the paragraph "H1" is selected (and applied)
Adding a table with NO headers does the same, so it's not me that confused style names and applied some to the wrong place.
H1 is not used and table and cells styles are not based in it.
I don't know whether it's a bug, but IT FEELS like a bug.
How do I expect it to work?
I expect that by creating a table, NO style be applied other than the table's. (Not even the basic one)You might have set the default paragraph style for the document (which you set by selecting a paragraph style with no text frame selected) to your H1 paragraph style.
Make sure it's on "Basic paragraph" when you select the type tool.. -
I would like to know how to include entries in my TOC that refer to paragraph styles listed before the TOC.
Example:
page i. Title Page
page ii. Abstract
page iii. Table of Contents
I want the TOC on page iii to include the entries "title page" and "abstract". Is this possible?
Thank you-Thesis formatting rules.
Can you answer another question?
How do I change the text for a TOC entry? For example,
I have selected the title on my first page, for example "Summer Report" and selected a paragraph style for it, and added it in the TOC. Now the TOC will have this entry for "Summer Report" and the associated page. But I want it to say "Title Page" instead. Can I edit this text? In order words, have the TOC point to something with whatever name I want to give it, even though it is not the actual name of the section? -
InDesign cs5 crashes whenever I try to alter the footnote formatting by going to Type > Document Footnote Option > and then I try to select a Paragraph style I've already set up. The Paragraph style I need to use includes Span Columns, which I think may be the issue. I think this because when I then I tried to create a new document and re-import the styles, it won't even let me add Span Columns feature to the Paragraph Style in question.
I can send screen shots of everything (e.g. dialog boxes) if that would be helpful in understanding the issue I'm having.
Any help would be greatly appreciated!!!!!!!!!!
Thanks.It does require running a script to accomplish what you want. Here's the one usually recommended:
http://www.kahrel.plus.com/indesign/footnotes_columns.html
Here are instructions for installing scripts:
How to Install a Script in InDesign That You Found in a Forum or ... -
How do you select all paragraphs using the same style in Pages 5.2?
I'm trying to find how to select all paragraphs using the same style in Pages 5.2 without any success. I writing a book and I need to able to adjust all my paragraph styles globally. I see how upgrade my paragraph style when I do something new, but not how to revert back to the orginal template.
For example, in my custom template for my book I have 12 font for a review questions paragraph style. I changed the font size for all this paragraph style to 18 font. Now I want to change it back to size 12 font. But I have this paragraph style at the top and bottom of my document. How to I select all of my review questions style so I can make the font change to all at the same time?
I just upgrade to Pages 5.2 from Pages '09.
Thanks for the help,
RobThe Pages User Guide might help here.
Better to post your topic in the Pages designated community > Pages: iWork: Apple Support Communities -
The table of contents is empty because none of the paragraph styles selected in the Document Inspector are used in the document.
The above is what I get when I open a word document. Is there a way to solve this?Hmmm. Apply the styles?
Peter -
'Clear Paragraph Style' and 'Clear Selection Style'
In an old archived topic, someone wrote:
quote:
In DWMX, you could select text in the design view and in the
"HTML Styles" window (which no longer exists in MX 2004) all you
had to do was click "Clear Selection Style" and all HTML formatting
(paragraph tags, font faces, colours, bold, italics etc) would be
removed. This was marvellous for reformatting <font> tag
based text with CSS. MX 2004 claims to be a CSS machine, but it
seems to lack this very important feature which helps to re-inforce
the use of CSS over font tags.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=189&threadid=714513&arc tab=arc
I absolutely agree, and none of the alternative methods
people suggested in that thread matched this lost feature for speed
and ease of use.
I've not seen a replacement for these commands in Dreamweaver
8 either (although I've often wished for one). Does anyone know of
a hidden feature that exists in version 8 for removing all the HTML
formatting in one fell swoop?I count 4 steps.
1. Copy the entire line
2. Paste into notepad
3. Copy the entire line
4. Paste into DW
That does it nicely no matter how much presentational markup
there is.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Kals" <[email protected]> wrote in message
news:[email protected]...
>
quote:
I think what the O/P is wanting is a quick and easy method to
remove
> all of
> those presentational tags.
>
> Thanks Gary ? spot on! I'll use the term 'presentational
markup' rather
> than
> 'HTML styles' from now on. (Excuse my ignorance, but
what's an 'OP'?
> Should I
> like being called such a thing? :)
>
>
quote:
Murray: ? but you just cannot create predefined "HTML STYLES"
any
> longer.
> It's no great loss....
>
> Agreed! Okay, we've established that no one's lamenting
the loss of 'HTML
> styles' in the sense of a style sheet that stores HTML
presentational
> markup.
>
>
quote:
And if "HTML STYLES" were not used in the first place, then
even having
> that feature available now wouldn't help OP, if your
interpretation is
> correct.
>
> Perhaps you are misinterpreting what those commands did.
'Clear Paragraph
> Style' was the equivalent of applying a predefined 'HTML
style' with no
> presentational markup ? making it as far as I know, the
quickest, easiest
> way
> to strip all presentational markup out of your HTML
(irrespective of
> whether
> the markup originated through the use of 'HTML styles').
This could have
> very
> easily been replaced by a stand-alone command.
>
>
quote:
There are certainly quick and easy ways to remove many of
them.
> Okay then, here's the test. How many steps does it take
you to clean up
> the
> following paragraph?
>
> <p align="center"><font size="+1" face="Times
New Roman, Times, serif">The
> quick
brown fox
jumps over the
<font
> color="#FF0000">lazy</font>
dog</font></p>
>
> I count 10 steps if you select the entire paragraph and
use nothing but
> the
> Properties panel and/or Text menu. Perhaps you can beat
my attempt. If I
> use
> the 'Clean Up HTML' command, it takes me about 20
seconds to check for and
> type
> in all the individual tags I want removed, then I still
have to manually
> fix
> the alignment. Do you know of a quicker, easier way?
> -
Create paragraph style based on selection
Is there a way to create a paragraph style based on the selection in the same way the "New Paragraph Style" dialog box does without having to go through ALL of the elements of the style individually?
ThanksI was hoping (even expecting) that this would work:
if (app.documents.length > 0 &&
app.selection.length === 1 &&
app.selection[0].hasOwnProperty("baseline")) {
var myDoc = app.documents[0];
var myPstyle = myDoc.paragraphStyles.add({
properties : app.selection[0].properties,
name : "myNewStyle"});
but the result is very disappointing, particularly with respect to the font details. Maybe you just can't use the properties property as part of an add() method call, because this works pretty well:
if (app.documents.length > 0 &&
app.selection.length === 1 &&
app.selection[0].hasOwnProperty("baseline")) {
var myDoc = app.documents[0];
var myPstyle = myDoc.paragraphStyles.add({name : "myNewStyle"});
myPstyle.properties = app.selection[0].properties;
Dave -
Problem: Photoshop CS6 applies two paragraph styles when one is selected
Hi everyone,
When I change the heading title within my text box, I select the heading and then select the appropriate style. Instead of just changing the heading, the body text changes as well. Is there a setting that's causing this to happen?
Thanks so much for your help!First Bug: Simply having a layer selected (even a text layer) and then clicking the "Create New Paragraph Style" will create a generic style (with default settings). You have to tell Photoshop what settings it is that you want to create a style with. Simply double-click the text layer icon (not the layer name or the blank area around it) and this will open the text layer for editing and select the text. Now when you click the "Create New Paragraph Style" button, the settings of the selected text will be made into a style. This is how they are performing the step in the video as well, but from your description it sounds like you are skipping a step. And remember, there are two different ways of creating text: single click the Text tool to create line (character) text, click and drag a text box to create paragraph text. That is why we have both Character Styles and Paragraph Styles.
Second Bug: The Paragraph Style is applying with your text transformations calculated. So, if you create a text style that uses a 24 pt font, then you create text and transform it so that it 200% larger, when you apply the style you will end up with a font that is at 48 pts. A 50% transformation will result in a 12 pt font, etc.
Third Bug: Not sure why that is happening to you. My Mac uses half as much RAM and doesn't run into that problem. My guess is it would have to do with the fonts you have installed on the system. Do you still see this behavior if you disable all the fonts on your system (through Font Book or your favored font managment utility)? Your suggestion that it may have something to do with Fonnnnt Shop or WebInk may be true to. Just because they aren't open currently doesn't mean they haven't modified Photoshop and the way it runs. -
Paragraph styles all default to wrong character style
So I set up a template and based all my character styles on my basic body copy. However, every new text box I create it defaults to the "character styles" to my section header color and sizing. I have to right click and "clear character styles" every single time. I've never had this happen before and cannot figure out how to fix it, it is such a PAIN!
From your explanation, I suspect your use of Character Styles might need to be redirected to Paragraph Styles. But that is conjecture, so I apologize if I'm wrong. In any case, to solve your problem; with nothing selected, choose No Character Style in the Character Styles panel. That sets the default for new frames.
-
How do I edit a paragraph style in Muse?
Is there a way to change a typeface or other detail in a paragraph stylesheet in Muse? I've tried duplicating the style, and then, when I delete the old one, I replace it with the new one. Is there a more direct way to do that?
Hello,
If you create a paragraph style, then change any attribute, the style has an override. If you'd like to keep this override and redefine the style click the "redefine selected style from attributes" button (highlighted in the screen shot.)
More info is here:
http://helpx.adobe.com/muse/using/creating-using-character-paragraph-styles.html -
Creating a new paragraph style based on text in a document
I'm working on some scripts for a new ad our company is working on. They are wanting to have the ability to change the font weekly in the ads. However, they want the style sheets to change based on this. What I am having to do is write a script that gets the properties of the different paragraphs in the selected text frame, and make paragraph styles. Is there a way to get the properties of paragraph 1, and use that information to make a new paragraph style? Here is what I have so far;
set charaStyle to get properties of character charaSelect of paragraph paraOne of myBox
set makeStyle to make character style with properties {name:"MF Price" & charaSelect, based on:properties of character charaSelect}
We are using InDesign CS 3. Thank you in advance for the help.this way - build ParaStyle definition from selected text - works only in UI
in scripting you need to write your own procedure - read all params and set them one-by-one in ParaStyle definition
robin
www.adobescripts.com -
I have a few documents that have text and images that is frequently repeated through many chapters of an In Design book. (Printing, exporting etc.) I used to select all in the source document, Command + C to copy it, change to the target document, Command + V to paste it. It worked well for six months.
About two weeks ago it stopped working (shortly after an update to In Design). I have text, paragraph styles, chacter styles and images in each document. Only the plain text copies over. This is the same for any document.
I haven't changed Preferences in six months.
I'm on a Mac 10.8.2, In Design CS6 version 8.0.1.
It's driving me crazy! It's a lot of work to reformat each 2 to 10 pages after copying it in.
Steven HusseySource:
Target:
Here you go.
Steve -
Hi,
Is there anyway of using GREP (or some other magical wizardry) to create a paragraph style that automatically removes all spaces and forces words into lower case?
Strange request i know....I'm wanting to use it for datamerged email addresses.
Thanksso doing it through InDesign is a work around I'm exploring.
Excel has the 'LOWER' function and the ability to record macros for a quick find/replace on the spaces - so that's definitely a good option if it can't be solved purely in InDesign.
You can change case via scripting in InDesign. This AppleScript (OSX only) will set the case of the selected paragraph style to lower. It would be possible to add some code that would strip spaces as well:
tell application "Adobe InDesign CS6"
activate
set StyleList to name of every paragraph style of active document
set myDialog to make dialog with properties {name:"Document Paragraph Styles"}
tell myDialog
tell (make dialog column)
tell (make border panel)
tell (make dialog column)
make static text with properties {static label:"Choose a Style", min width:150}
end tell
tell (make dialog column)
set myPresetsDropdown to make dropdown with properties {string list:StyleList, selected index:0, min width:150}
end tell
end tell
end tell
end tell
set myResult to show myDialog
if myResult = true then
--+1 gets the correct name because list starts at 0
set myStyle to item ((selected index of myPresetsDropdown) + 1) of StyleList
else
return
end if
destroy myDialog
tell active document
set myStyle to paragraph style myStyle
repeat with j from 1 to (count stories)
repeat with i from 1 to (count paragraphs in story j)
if applied paragraph style of paragraph i of story j is myStyle then
--defines a variable to replace the generic this_text parameter in the handler
set SCText to the contents of paragraph i of story j
set contents of paragraph i of story j to my change_case_of(SCText)
end if
end repeat
end repeat
end tell
end tell
on change_case_of(this_text)
set the_comparison_string to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
set the_source_string to "abcdefghijklmnopqrstuvwxyz"
set the_new_text to ""
repeat with thisChar in this_text
set x to the offset of thisChar in the_comparison_string
if x is not 0 then
set the_new_text to (the_new_text & character x of the_source_string) as string
else
set the_new_text to (the_new_text & thisChar) as string
end if
end repeat
return the_new_text
end change_case_of -
How to apply multiple paragraph styles to one sentence?
I'm using paragraph styles but is not helpful because I'm trying to apply 2 different styles within the same sentence which is not working.
To make it work I select the sentence, apply the style, for instance "xfont-regular" then I select the word within the sentence that I want it to have a different style and I choose from the font list maybe italic so that it looks "something like this"
Obviously by doing this, I'm loosing all the benefits of using p styles and of course it's so time consuming. Is there any way to break the sentence, keeping it in the same line, so that I can apply different styles to it? and still keep the benefits of just going to the styles and make the changes to the whole document that have that style applied.
Thank youpchinique wrote:
I'm using paragraph styles but is not helpful because I'm trying to apply 2 different styles within the same sentence which is not working.
To make it work I select the sentence, apply the style, for instance "xfont-regular" then I select the word within the sentence that I want it to have a different style and I choose from the font list maybe italic so that it looks "something like this"
Obviously by doing this, I'm loosing all the benefits of using p styles and of course it's so time consuming. Is there any way to break the sentence, keeping it in the same line, so that I can apply different styles to it? and still keep the benefits of just going to the styles and make the changes to the whole document that have that style applied.
Thank you
As Diane King mentioned, nested character styles may work for your need. Her example was an initial dropped capital (multi-line first one or several letters of a paragraph.) Dropped caps are a specific type of nested style - always the first one or more characters in a paragraph, two or more lines high.
To use the general kind of nested style, you need to be able to identify the word or words within the paragraph that gets the nested character style. For example, the third word, or the first two words after the first semi-colon. If there is no pattern of word(s) that can be identified by position or sequence, it's possible that a GREP style can be used to find a common pattern of characters and apply a character style to it, for example a telephone number, date, or currency amount that's identified by a dollar sign, pound, or yuan.
Search InDesign Help and Google for "InDesign nested style," "InDesign grep style," and similar terms (without quotes) for details. There have been many discussions of GREP on this forum.
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices
Maybe you are looking for
-
Yeah so I previously deleted videos and recently had to do a factory reset because the phone was freezing on me. I hadn't ever backup up my phone, so is there any way to retrieve the videos?
-
Can I use a colour palette control to set the colour of an LED on front panel?
Hi, I want to allow the user of my LabView program to be able to set the colour of an enlarged LED on the front panel using a colour palette control also on the front panel. Is this possible or can the LED only be the colour it is set to in its prope
-
My imac display is unreadable. Everything looks pixelated and blurry with the resolution set to 1680X1050. It has the Radeon X1600. Tried font smoothing and changing the resolution but it didn't work. Also hooked up a second monitor and the image loo
-
Oracle Enterrize Manager is not showing login page?
Hi, I am trying to open "http://XXX:5501/em" Then it is directed to "http://tdm:5501/em/console/database/instance/repDown". And it is showing two options , One is Startup and other one is Perform Recovery. And it is showing the following info. "The d
-
Laptop: 95% NTSC TN vs 60% NTSC IPS for my use?
I'm fairly new to photography, got a G3 in December 2011. Had nothing but compacts prior. Bought Lightroom 4 and started shooting RAW a year ago. Upgraded to a G5 last fall and just upgraded to Lightroom 5. I shoot family and vacation photos, and