How do I prevent unwanted paragraph style overrides when exporting an epub

I am having trouble controlling the size of a  logo in an e-pub. Actually, it's only a problem with Amazon's Kindle which seems to insist on enlarging the image to the full screen width. So, I need a robust command in my CSS to override Kindle's preference. Seems easy. I placed the logo into my In Design layout in a picture box with the object style "frontmatterlogo" which should export into a div of the same name. Which it does. So far so good. However, In Design insists on creating a paragraph style override (see bold in the code below) which disregards the  frontmatterlogo settings I've written in to my CSS in favour of it's own image settings which correspond to the size of the placed image. Currently, I've just put together a hacked solution by writing a class for para-style-override into my CSS. It's an inelegant solution but seems to work for all the other e-readers. But, as mentioned, it doesn't work on the Kindle.
Anyone have any idea what is causing these overrides and how I might prevent them so my div class can take over?
Alan
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Titlepage2-1.html</title>
        <link href="template.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <div id="Titlepage2-1.html" xml:lang="en-US">
            <div class="story">
                <p class="Pagebreak"/>
                <h1 class="fulltitle">Far North</h1>
                <h2 class="author">MARCEL THEROUX</h2>
            </div>
            <div class="frontmatterlogo">
                <p class="para-style-override-1">
                    <img width="191" height="19" src="images/HarperPerennialClassic_fmt.jpeg" alt="HarperPerennialClassicsLogo.jpg"/>
                </p>
            </div>
        </div>
    </body>
</html>

Thanks for getting back so quickly, Bob.
I'm using Version 5.5. I have basically the same problem when the object is anchored. In the case below, I created a new paragraph style for the line on which the logo would be anchored, also mapping to the frontmatterlogo entry in my CSS. This time, no paragraph-style-override is added but In Design still adds it's own image dimensions corresponding to the size at which the image was placed in the layout. This overrides the settings in my CSS and, I suspect, might be what's allowing the Kindle settings to take over as well. I had kind of resigned myself to fixing this in the code  on a book by book basis, which is fine if the only images the book contains is a cover and a title page logo. But I'm worried about what happens when I have to create an e-pub from a photo-heavy book. You can see how it would be ideal to create a few specific object styles for different image situations in In Design and have them map them to specific div styles in my CSS. Basically it's a workflow issue. This would minimize the amount of after-the-fact coding our already swamped designers would have to do.
It's so obvious in the code where the problem lies, and so I just have a feeling that there may be a simple fix. If only I knew why In Design felt obliged to specify the image size.
A.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Titlepage2-1.html</title>
        <link href="template.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <div id="Titlepage2-1.html" xml:lang="en-US">
            <div class="story">
                <p class="Pagebreak"/>
                <h1 class="fulltitle">Far North</h1>
                <h2 class="author">MARCEL THEROUX</h2>
                <p class="frontmatterlogo"><img class="frontmatterlogo" width="196" height="20" src="images/HarperPerennialClassic_fmt.jpeg" alt="HarperPerennialClassicsLogo.jpg"/></p>
            </div>
        </div>
    </body>
</html>

Similar Messages

  • How do I use multiple paragraph styles in one line?

    I'm working on my thesis in APA style.  I'm creating a Table of Contents with the help of Pages.  When you get to Level 3 in APA headings (no problems with Levels 1 and 2) it needs to look like this:
    [0.5in Indent] Masculinities in higher education.  For men, the college experience.... (paragraph starts on same line as the heading).
    I created a paragraph style for the (bolded) heading above [Heading 3].  When I do this, like magic the heading shows up in the table of contents (yeah!).  However when I do this the rest of the paragraph shows up too (boo!).  When I highlight to change the just rest of the paragraph (not the heading) to the style "Body" it changes the heading too and removes it from the table of contents.  How can I make 2 paragraph styles work together in the same paragraph so I can use the tale of contents tool??  Surly there is a work-around.
    Pages 5

    As the name implies, paragraph styles are not intended to be used on a unit smaller than a paragraph. Therefore if you want the TOC to be automatically generated then you need to have distinct  paragraphs... as you specify the APA style with the content and heading continuous then you will have to manually create the TOC.

  • Howto always clear paragraph style overrides?

    Using Indesign Cs5. 
    I'm going to import loads of incopy-text that has already ben placed on other layouts. The problem is that these texts contains some paragraph styles overrides that I do not want to include in the new document. 
    Question: is there some way to tell indesign to automatically clear paragraph style overrides?

    Reading through that article, it appears that added styles will be ignored with certain exceptions that in turn are overrideable in ID. But I am working in the blind here.
    I know there are GREP routines you can use to set chosen paragraph styles to any other and it is fast to do. Search the forum for these.
    Because I work by myself and don't receive anything but funky Word or text documents that I fully set in ID, I haven't faced what you are.
    Hopefully someone who does use IC will come along to actually help you.
    Mike

  • How can I prevent videos from automatically starting when I load a web site?

    Recently web sites have begun not only showing me the first shot of a video, but starting the video automatically when the page loads (or when I scroll down to the part of the page where the video is located). This happens on various news sites (nytimes.com), facebook, and other places. How can I prevent the autostart from happening?
    I've got AdBlockPlus and NoScript enabled, although I whitelist many sites in NoScript. Videos used to wait for me to click an arrow in the middle (like a "play" button) to start; some still do, but most don't. (I believe an add-on is responsible for the play button, but I don't recall which one.)
    Any suggestions?
    Thanks.

    The chosen answer is not an answer at all.
    The question remains unanswered: How does one prevent unwanted video content from playing automatically on web websites? The problem is most notable on news sites such as ABC News.
    It is really, really, really really really, really, really, really really really, really, really, really really really irritating. More irritating, in fact, than when people cut and paste a word a dozen times to emphasize it.
    MORE IRRITATING THAN WHJEN PEOPLE USE ALL CAPS OUT OF FRUSTRATION BECAUSE NO ONE SEEMS TO LISTEN OR TO CARE THAT I AM SLOWLY LOSING MY MIND BECAUSE EVERY FLIPPING WEB PAGE IN EXISTENCE PLAYS VIDEAS THAT I DON'T WANT TO WATCH.
    More irritating than repeatedly stating the same thing over and over and over and over... wait. I already illustrated that tautology. Never mind.
    Does anyone have an answer? If there is no answer, and the powers that be at Firefox have decided that we have no choice, then state so. If those who decide what HTML "is" have decided that individuals have no power to opt out of video content on any given web page, then say so.
    If Obama is to blame, then say so. If Bush is to blame, then say so.
    But don't say, "the web [page may be using HTML 5 to play video" because THAT is a NON-ANSWER, let alone the "best" answer.

  • How do I get rid of memory issue when exporting in imovie

    How do I get rid of memory issue when exporting in imovie?

    Delete the content that is filling it up. Text messages, iMessages, SMS, emails, Safari Cache; essentially all data for all of the built in apps.

  • How can I force a paragraph style without losing italic?

    This has been annoying me for ages. I work on documents in Word, applying italic to book titles etc, and then import into indesign. I apply a paragraph style and three times out of four the bits of italic are preserved. However, the fourth time the paragraph style doesn't take (probably because of the presence of italic) and I have to force it to do so by using Alt-click. Invariably the italic is then replaced by roman.
    It's happening just now with a whole lot of footnotes and endnotes in a book I'm working on and means I have to go back through them all, manually applying italic to my book titles and references. Is there any way to force an endnote/footnote paragraph style without losing the italic text?
    Thanks for any suggestions,
    Tom.

    I'm not sure that forward planning is so necessary here.
    If your only concern is losing italics when importing from Word, create,
    in InDesign, an italic character style. Then do a search and replace
    throughout the InDesign document (after you've placed the Word file)
    searching for italics formatting, and replacing with your italics
    character style.
    That will prevent you from losing your italics formatting.
    Repeat for bold, bold italics, superscript, subscript, and anything else
    the author uses.
    There are some scripts that help in this process (I think one of them is
    called "preptext", by Jongware).
    If you want a comprehensive solution that can find every type of
    formatting override and creates and applies the appropriate character
    style, check out my "Create Character Styles from Overrides" script,
    available under the scripting tab on freelancebookdesign.com.
    Ariel

  • Do paragraph style overrides work differently in CS3 vs CS4?

    Hi All-
    I’m in the process of moving a workflow from CS3 to CS4, and have run into an unexpected problem. In the existing CS3 workflow, we receive copyedited text with Word paragraph styles applied, then import this text into our InDesign template. This template has all the same paragraph style names as the Word file, so we tell InDesign to use the InDesign style definitions in the Import options. So, for instance, the Word style for Para_Text is Times New Roman 12pt, and the InDesign style for Para_Text is Helvetica Neue 8pt, and on Import InDesign automatically changes it to Helvetica Neue 8pt. This is as we want it.
    Things fall apart, however, when we import the same text into the same template in InDesign CS4. It still applies the InDesign style definition, but has additional overrides to make it look like the Word style definition. So, it recognizes that the underlying paragraph style should be Helvetica Neue 8pt, but it then preserves Times New Roman 12pt as an override. If I select the text and do Clear Overrides, it’ll revert to the Helvetica Neue 8pt we want it in, but for other reasons that solution is less than ideal.
    I think I can come up with a rather kludgy way around this, but I’m trying to understand exactly why we’re getting the different behavior in CS4. It seems like paragraph style conflicts are being handled in a different way in CS3 than CS4 – in CS3, if the InDesign paragraph style specifically spelled out a font, that would dominate on import; now, in CS4, it’s allowing the Word paragraph style to seep through as an override. Any thoughts as to why this is happening?
    Thanks,
    -Nate

    Hi Chris.
    Good news. I cant tell you how happy i am for all your help ;-) and you other guys.
    The latest Eizo 5.2.1 software fixed the problem on all 3 Eizo monitors.. Weeee
    I'm back to normal.
    Now i just have another damn problem started not long ago ;(
    My Photoshop CS3 and CS4 keeps crashing on me after a wile of work ???
    I tried everything. Deleted preffs etc. etc.
    It have been working for long long time but suddenly it keeps crashing all the time.
    I tried to remove some new plug-ins, but it was not that.
    Only thing i did also was to install new ram.
    Upgraded from 10GB to 14GB in all our Mac Pro.
    So after i tried to switch the ram around to check if some was bad.
    Also run some memory software but everything came out right.
    So now the only thing left is that Photoshop dosent like ram between 14GB & 16GB.
    Under was fine and i never tried over 16 gigs.. weird
    Any ide what could corse this ?

  • Problem with paragraph style overrides and character formatting

    I've had this problem for a long time, and sometimes it resolves itself, sometimes it doesn't. Finally I'm begging for help.
    I am typesetting academic articles into a journal.  We use endnotes. The endnotes have both italic and regular formatting--italics for book and journal titles, and foreign phrases.
    Sometimes when I place the text, the formatting reverts to whatever it was in Word.  To try to fix that, I've begun stripping the Word formatting from the original document, making everything "Courier New" and just importing it like that.  I figured this would clear a lot of the problems I've had with fiddly formatting issues.
    I was mistaken. 
    Here is what happens:
    When I place the document it comes up in the original Courier New font, with italics and other formatting intact.  If I click "article style" which is the main article paragraph  style format, normally it changes.  but if I right click and select "apply article style" it is more likely to change the paragraph to the proper style, with italics and other formatting still intact.
    But when it gets to endnotes, I'm sort of screwed.
    My endnotes style is a bulletted style, so that I can have the endnote numbers consistent.  but this seems to screw all the style formatting.
    Here is what I do:
    With the cursor in endnote text, I click "bulleted endnote style".  The character format remains the same, with a + beside the style. The endnote number format is different, however.  If I click "clear overrides" it does in fact change to the proper formatting, but it strips any italics or other character in the text.  This is frustrating because many of these endnotes have lots of italicized journal and book titles, and it takes a long time to figure out which ones I need to reitalicize manually.
    I have tried to use the "customize style import>Style mapping" but it has not fixed anything.
    Please help me figure out how to make these transitions more smoothly.  I am open to suggestions both on how to make the changes once the document is placed in the Indesign file, and also making modifications to formats in the native Word file so that I don't have these problems. 
    Thanks
    Dan

    Sorry, that last message wasn't supposed to send (if that's not obvious!). I was writing it and got interrupted.  Damn iphone. 
    I know why there are two numbers.  This is not an issue. What I didn't finish writing was that, the note number before i bullet it is a different font/ format. Again, not a problem.  Here is something interesting, though.  If I delete that original number by placing the cursor in the middle of it (say a between the 4 and 2 of 42) then delete everything by Shift+arrow forward, press delete then delete the rest of the unnecessary characters, THEN apply the style formatting, it works just fine.  Is it something to do with the character codes of those original note numbers? 
    Word drops in so many hidden codes that it screws everything up!

  • 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

  • How do I show table paragraph styles in keynote 6.1 (mac)?

    Hi community,
    I am tryying to apply changes to paragraph styles in keynote 6.1 (mac). But in the list which opens when i click in the triangle only the basis paragraph styles are seen.
    Any ideas how and whre i can find theses styles.
    Thanks
    slyrs

    I am sorry that I cannot make myself clear - perhaps because of my language competence
    1) There is a table style (for the whole table)
    And there are PARAGRAPH-styles for the text-attributes of the text in the table-cells (bold, italic, size, font etc.). I would call this a paragraph-style. This can be seen here:
    But this style cannot be edited or changed because it does not show up in the dropdown of the parapgrah-styles - as can be seen here:
    You DO NOT FIND the paragraph-style ("Absatzstil" in German) "Tabellenstil 1" in the dropdown.

  • How do you automatically create paragraph styles from a document?

    Hi,
    (posted in general indesign as well - advised to post over here)
    I know I've seen this somewhere but can't for the life of me find it...
    How can I automatically create paragraph and character styles in an InDesign CC document? I'm sure I saw a script to do this and though I'll download that later...only i can't find it now.
    The scenario is that I have a document created by someone else which has lots of paragraph styles, but each one has over-rides on (so they're not really much use). I'm wanting something that will go through the document and create all the different styles that have been used.
    Any ideas?
    Thanks

    Hi
    I was given this tip to try: PerfectPrepText (http://indesignsecrets.com/perfectpreptext-a-smart-way-to-style-local-formatting.php) but couldn't get it to do what i was after unfortunately...however it did point me in the direction of something that does the trick:
    PowerStyles (DTP Tools - Power Styles for Adobe InDesign).
    Not sure if it's available for CC yet though.
    Thanks

  • Can I clear all paragraph style overrides at once?

    Sometimes when I change a paragraph style, the places where I've applied it don't conform. Why is this?
    I end up having to go through the whole document and hitting "clear overrides." Is there an easier way?
    Thank you!

    Local formatting always trumps a style.
    Try using Find/Change, though, searching for the style and replacing with the same style. That might do it.

  • [JS] How to break link to paragraph style from script?

    I don't found the command break link to paragraph style from script.
    I want "unapply" the style from the text, but leave the formatting intact.
    Can help me?

    In the interface it's a separate command ("Break link to style"), but it seems in a script you have to use
    Paragraph.applyParagraphStyle (using:ParagraphStyle[, clearingOverrides:bool=true])
    You cannot use "null" or something similar for "ParagraphStyle", so I guess the idea is to use paragraph style #0 in your document (which is always "[No Paragraph Style]"). Be sure to set "clearing Overrides" to false, as it defaults to true.
    The following single line works on your current paragraph:
    app.activeDocument.selection[0].paragraphs[0].applyParagraphStyle (app.activeDocument.paragraphStyles[0], false);

  • Import ID tagged text file results in paragraph style overrides

    I have been working on a project that requires the import of a large amount of information from a database. I have defined all the paragraph styles in InDesign and have a program to apply the paragraph style to the database information creating the InDesign Tagged Text file. When I place it into my document the paragraph styles are recognized but there is an override. If I clear the override, the text looks fine. I have an example document that I have exported and imported some text to rule out the program, but even in this case, an override occurs. Text is there, the paragraph format is there, but font size (for example) is wrong. Where should I be looking to correct this issue?
    Harold

    I don't recognize any of those being wrong, per se. I have the file on another computer, so I mocked up yet another one. Sorry
    Again in this one I did ASCII export, no fancy characters. And this one demonstrates the problem, too. I have two kinds of paragraphs. A big one and a small one. I create those paragraph styles. I select the only two lines in the file. Export and then bring them in underneath themselves to compare.
    The paragraph styles for the newly Placed paragraphs are gone. The font color is the same. But the font size and font have not changed.
    I manually edited the IDTT and removed the <Japanese feature> tag. Placed it again. Font color is the same, but the size and font are wrong.
    In other words, my problem is that ID does not seem to apply the paragraph style to the text when it is imported. Aren't the font size and font defined in the Paragraph Style?
    My end goal is to define some paragraph styles and create the IDTT automatically from a database. My hope was that the paragraphs would be formated properly based on the predefined styles when the IDTT comes in. I cannot get it to do this even for a pared down example. Aren't other users doing this?
    Here is the IDTT on pastebin (with the <Japanese...> tag removed)
    http://pastebin.com/Vdc6NVDV
    And what it looks like after the intial Place with <Japanese...> tag in, edited line from Small to "Deleted Japanese feature...", removed tag from IDTT and then did another Place.

  • How can i give multiple paragraph styles on the same line

    i want to give different paragraph style in the same line in an indesign document. bt when i tried it, it is coming in two different line.
    actually i am doing a project in which Frame maker document is transformed into indesign document. in frame maker this is possiable, but in indesign i cannot give different paragraph style in the same line of the document.
    Is there any way to do this ????

    YaneshTyagi wrote:
    i want to give different paragraph style in the same line in an indesign document. bt when i tried it, it is coming in two different line.
    actually i am doing a project in which Frame maker document is transformed into indesign document. in frame maker this is possiable, but in indesign i cannot give different paragraph style in the same line of the document.
    Is there any way to do this ????
    Hi, Yanesh:
    Please understand, the FrameMaker feature known as a run-in paragraph, which is a paragraph with a "carriage return" but without a "line feed," HAS NO COUNTERPART in InDesign. InDesign also lacks the FrameMaker side heading feature, which is created by the combination of a reserved area in the text frame and the paragraph property to inhabit that area. FrameMaker separates paragraphs by using the larger of space below paragraph and space above paragraph, but InDesign separates paragraphs by adding the space below paragraph and the space above paragraph.
    There are several complicated manual methods of simulating these FrameMaker properties in InDesign.
    Here's a recent forum discussion of these exact issues: http://forums.adobe.com/message/3759635#3759635. The thread mentions DTP Tools' conversion tool, the MIF Filter commercial plug-in for InDesign, and discusses its shortcomings. I don't recall it mentioning in-tools.com plug-ins that can simulate side headings, like those in FrameMaker, but they don't convert FrameMaker to InDesign. 
    You can add your vote for InDesign's developers to include these FrameMaker features, and any others you'd like to see, here: wish.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

Maybe you are looking for