Definition of 1st line indent to the length of the previous line. Possible?
In Ventura, we used to be able to set the indentation of the first line of a paragraph to the length of the last line in the preceding paragraph. Is this possible in ID CS4? I need to do and do not know how.
Thanks for your help
Jon
This quick and dirty script should do the trick. Select text and run this script...
paras = app.selection[0].paragraphs; for(var i=0;iSubstances
Tags: InDesign
Similar Questions
First line indent except the first line of a paragraph
Hello
I would create a paragraph style with a first line indent, with the exception of the first line, which I have no dash.
Attached an example of how I want it to look.
Best regards
Vincent
You need a second style to the first paragraph. Based on the other model and the withdrawal of first line value of 0.
Classic report - "BOLD" of the 1st line of detail of each break
I have a classic report based on an sql:
Select
'LOCATION ',.
"DEPTNAME",.
"MODEL_NUMBER,"
"FIRSTNAME."
"LASTNAME."
Sum (decode("category",'CAD',1)) CAD,
Sum (decode("category",'Desktop',1)) desktop computer,.
Sum (decode("category",'Portable',1)) Portable
from 'table1 '.
Group
'LOCATION', "DEPTNAME", 'CATEGORY', 'MODEL_NUMBER', 'FIRSTNAME ',.
'LASTNAME '.
Union
Select
'LOCATION ',.
"DEPTNAME",.
"" as "MODEL_NUMBER."
"" as "FIRSTNAME."
"" as "LASTNAME."
Sum (decode("category",'CAD',1)) CAD,
Sum (decode("category",'Desktop',1)) desktop computer,.
Sum (decode("category",'Portable',1)) Portable
from 'table1 '.
Group
"LOCATION',"DEPTNAME","CATEGORY"," "
order by 1 ASC, ASC 2, CSA 3
while I have the total of break on the 1st line and the details below.
For example,.
Human resources New York 2 1 0
Model a Joe Smith 1 0 0
Model B John Wayne 1 0 0
Model B Jim Jones 0 1 0
I want the 1st line (i.e., total of break) to be bold and normal detail lines. How can I easily do that. I looked at the model and I couldn't understand how to differentiate the two types of lines.
Can someone please help.
Thank you in advance,
Robert
Published by: sect55 on September 29, 2009 02:32Hi Robert,.
In the two parts you select statement, you could add in a dummy flag - 1 for the first statement and 2 for the second. Then create a new report based on your existing model. You must define at least two models of row and Conditions - each having the same content, but with a bold style. The condition for the "BOLD" would be ' #FLAG #' = '1' and the second one would be ' #FLAG #' = '2' - you should probably add a third party unconditionally, just in case the use of the model not fat
Andy
No indent on the first paragraph only after the title
I am importing a Word document and I encounter a few problems during Assembly.
1. I don't want the first line of the first paragraph after a heading have a dash. I don't want the Indent on the following paragraphs.
I created two new styles of paragraphs where firstbodyParagraph style does not have a dash in the 1st row and bodyParagraph style has a dash.
Title 1A in the following style firstbodyParagraph and firstbodyParagraph a bodyParagraph in the following style. It works very well within Indesign. For example if I score of Heading1 until the next title and select use Heading1, and then click Next. But if I get a Word document where I've adapted Heading1 in word to my own defined inddHeading1 etc, this does not work no matter how I try to change the linking of the Word text in firstbodyParagraph or bodyParagraph. Following style is not honoured so to speak.
2. Another problem is that my margin to the left and right margins settings change not is. Word document left only right margin and my body text paragraphs are to the left and right margins straight. A small sign appears on my paragraph style and I have to go through the whole of the document paragraph by paragraph to click away.
To the text block, you can break the flow of the text on the first image, substitute the paragraph and style of object of the framework and then create a link to the stream. If a stream of text associated with various substitutes:
Click on the first image port, followed by a click in the first frame to untie the lead
All select and clear the replacements for the paragraphs of the text styles and select the image and erase his substitution. Italic Blue Note not style loses her style because she has no style applied character:
Renfilez:
Store the new values in the table in the new row so that the 'old' remains in the previous lines
Hello
I am a student of genius embedded. I did a VI where I change the values of digital controls, and it saves it as a table.
I want to store the pair of new values in the new row of this table.
I have attached a VI where I can change the values of numeric control, as well as the number of lines from another control. But when I change the values, all values in the output table change including values in the previous row. I want these lines to be unchanged and that new line to update.Need help.
If I understand correctly, you want to always 4 models. If so a 2D table will do the trick (see annex VI), otherwise crossrulz' solution should work.
By subtracting the previous row less the current line in SQL
I have a table - orders.
How to subtract the previous row less line current for incoming column
If anyone can help.
Hello
It is not clear what you want. What is the previous row? What order to examine DATE_IN?
Here is an example of using the function DATE_IN LAG to retrieve the previous value of the line consider the sort column.
WITH commands LIKE (select to_date (27 May 2015 ', ' dd/mm/yyyy') date_in, 83 of the double incoming_vol)
Union of all the
Select to_date (May 26, 2015 ', ' dd/mm/yyyy') date_in, 107 double incoming_vol
Union of all the
Select to_date (May 25, 2015 ', ' dd/mm/yyyy') date_in, 20 incoming_vol of the double
Union of all the
Select to_date (May 24, 2015 ', ' dd/mm/yyyy') date_in, 7 incoming_vol of the double
Union of all the
Select to_date (May 22, 2015 ', ' dd/mm/yyyy') date_in, 71 double incoming_vol
)
SELECT date_in
incoming_vol,
NVL (lag (incoming_vol) (date_in release order), 0)-incoming_vol previous_row_minus_current_row
Orders
ORDER BY 1 desc;
DATE_IN INCOMING_VOL PREVIOUS_ROW_MINUS_CURRENT_ROW
----------- ------------ ------------------------------
27/05/2015 83 24
26/05/2015-107-87
25/05/2015-20-13
24/05/2015 7 64
22/05/2015-71-71
If this isn't what you want then please give the expected results.
APEX 4.2.5: How reference a column element in the previous line?
Good afternoon
I have the following problem:
I have an IR on a table that contains the values of daily clock of energy (gas and electricity).
Now, I want to set up a calculated column that contains the daily consumption.
Power_actual_row - power_previous line.Is this possible and if yes how can I achieve this?
Kind regards.
Wilfried
Baerenmarke wrote:
I have the following problem:
I have an IR on a table that contains the values of daily consumption of energy (gas & electricity) clock.
Now, I want to set up a calculated column that contains the daily consumption.
Power_actual_row - power_previous line.Is this possible and if yes how can I achieve this?
Add a POWER_PREVIOUS column to your report query using the analytical function LAG to access the value of the POWER of the previous row. Use the ORDER byclause in the function to determine the order of the lines. The calculation of the IR then simply uses the POWER and POWER_PREVIOUS values for the same line.
Anchor to return to the same line on the previous page
Hello
I saw 4 or 5 posts on this subject, but none of them does not seem to work for me.
Here's what I would do:
I use an interactive report that contains an overview of the tasks and the information about these tasks. In the report, there is a column "Edit task" where users can click to change several fields for the task.
When the user clicks on the 'Edit' task - link, another page (of type 'Dynamic Form') is opened where the user can make adjustments and then save them.
When the user clicks 'Save' (or 'Cancel', by the way) on the edit page, I want to redirect them to the previous page with the overview of all the tasks, but I want the page to move in roughly the same place as when the line where users you click on 'Special Edition' is located. So if I change a task that is in the middle of the report, I want to return to the middle of the report when the user has finished its adjustments.
I have seen that it is possible using the anchors, but have not found a position that has worked for me.
I think that there are three elements to make something with to operate:
-The "Edit job" - link in relation to the overview of all tasks
-The button 'Cancel' or 'Save' on the edit page
-The page with the overview of the tasks that he knows which row to access
Our end-users really want this feature, so any help would be appreciated.
I run on APEX 4.2.
Thanks in advance for your answers.
Kind regards
NDG
Was the solution after several hours and it is actually not as difficult as it seemed during these hours.
So for those looking for the way to do it, here it is:
Make an anchor point in the query of your report which shows the overview of the tasks (or whatever the report will show to you, I use tasks for example) like this:
When I 1st layer trimming video - the upper layers are in the monitor program. I want to be able to see as a layer that I am Reaper. Where are the settings?
Disable Composite preview at trim:
MtD
I'm looking for the 1st working day of the week.
Hello
I'm looking for the 1st working day of the week except Saturday, Sunday and holidays. I have vacation, the name of the table that contains the columns HolidayDate and HolidayDescription.
Ex:
01/10/2011 is monday (i.e) 1st company day.check if it is in the host table, then return the result as 01/11/2011 other returns the output as a 11-1-2011(which is the first business day of this week).
Can someone tell me the query to solve?Hello
If dt is any DATE, it is the first day of work in the same week as dt:
WITH all_week AS ( SELECT TRUNC (dt, 'IW') + LEVEL - 1 AS a_dt FROM dual CONNECT BY LEVEL <= 5 ) SELECT MIN (a_dt) AS first_work_dt FROM all_week WHERE a_dt NOT IN ( SELECT holiday_dt FROM holiday ) ;
This assumes that you have never 5 consecutive days. (Where I work, holidays are always at least a week apart, so that's fine.)
If you have a week's holiday, increase the number of 'magical' in the CONNECT BY clause.It also means that holiday.holiday_dt = TRUNC (holiday.holiday.dt).
Indented in the table of contents is not retained in the table of contents of the document
Hi all
I use RH7 on a Windows XP Professional platform.
I am generating documentation and indentation in the table of contents generated in the document is not the same, not even close, as the project.
I tried to use HTML heading levels maintain checkbox, but while titles fonts are better, indentation in the table of contents for the document is getting worse.
When I disable this checkbox, it will give me a decent indentation in the table of contents, however the fonts used for headings in the document are sometimes more small then one used for normal text.
Does anyone has an idea how I could fix it? I don't want to do too much formatting in the Word document either, because it takes a long time.
Thank you
Thus in the document that you want to book either title 1 and 2 book 2 and in the table of contents you want this?
As you can see, this is what I have in the TOC and the body is as described above.
If you select HTML to maintain levels, you will always get the above with the titles of books but third topic will become a heading 1, as it should with this option checked.
I maps to a Word template where the TOC styles are defined to be indented as above. Maybe you have to match to a Word template, or if you are, you just need to tweek styles in it.
See www.grainge.org for creating tips and RoboHelp
indentation of the HTML/head/body tag
A question preferably, I like to indent the content of my tags html, head and body (see code examples).
It was a boring soft than Dreamweaver don't indent by default when a new page is created. I have finally is broken down and hunted for a preference to solve this problem.
In the category layout of the Code, I found the tag library Editor, who seems to have the exact settings I need. However, even with content formatted value and Indented for the html, head and body tags, recently created pages don't have still not any withdrawal.
I wasn't able to find any other settings related to this. Does anyone know of a solution? As I said, it's just a minor annoyance. Indenting manually is not a huge deal.
Actually, nevermind. I answered my own question. I was able to modify the default documents in the Adobe Dreamweaver CS3\configuration\DocumentTypes\NewDocuments\ folder, and the changes that I've made to these files appear when I create a new document. Seems like this another parameter should have worked too well.
Find all the lines from the previous column value difference lines
I have an interesting requirement. There is a DATE column and a user in one table and I have to find all the lines for all users for which the previous and the current line has lagged in lets say more than 30 minutes. The rows are already sorted in time.
For example in the following table, we need to ID 4 and 6 for user 1.
Date of the user ID
1 1 today 1 hr. 0 Min. 0 sec.
today 2 1 1 hour 1 min 0 sec
Today 3 1 1 hour 29 min 0 s
* 4-1 today 1 hour 59 min 3s *.
5 1 today 2 hours 10 min 2 sec
* 6 1 today 2 hours 50 min 7 s *.
Published by: user733179 on March 5, 2009 12:00Hello
To obtain a separate calculation for each value of the usr, start the analytical clause with "BY usr PARTITION":
WITH got_dif AS ( SELECT id, dt, usr , (dt - LAG (dt) OVER ( PARTITION BY usr ORDER BY dt ) ) -- difference in days * 24 * 60 AS minutes_dif FROM table_x -- WHERE ... -- if needed ) SELECT id, dt, usr FROM got_dif WHERE minutes_dif > 30 ;
incremensum under condition (condition is the value of the sum of the previous line)
Hello
I know that is a little tricky but I need to know the credit of a client after each invoice.
so if sum(invoice_val-previous_credit) > 0, then the credit is 0 credit else is previous_credit-invoice_val.
As you can see to dermine the credit value of the current row, it is necessary to check the value of the previous row. Is it possible to somehow?
E.G.
If the situation in the table is the following:I need something like this:ID_CLIENT ID_invoice invoice_VAL 8.789 220.227 120,47 8.789 238.342 109,76 8.789 246.388 121,69 8.789 258.163 137,45 8.789 268.969 138,67 8.789 295.455 145,16 8.789 311.395 138,92 8.789 327.104 138,96 8.789 340.793 -335,18 8.789 375.451 129,14 8.789 386.650 125,57 8.789 398.606 124,18 8.789 428.166 31,66 8.789 435.844 25,93 8.789 447.639 34,32 8.789 462.137 -43,64 8.789 475.613 -110,39 8.789 485.022 92,29 8.789 495.807 91,67
Thank you very muchID_CLIENT ID_invoice invoice_VAL credit 8.789 220.227 120,47 0,00 8.789 238.342 109,76 0,00 8.789 246.388 121,69 0,00 8.789 258.163 137,45 0,00 8.789 268.969 138,67 0,00 8.789 295.455 145,16 0,00 8.789 311.395 138,92 0,00 8.789 327.104 138,96 0,00 8.789 340.793 -335,18 335,18 8.789 375.451 129,14 206,04 8.789 386.650 125,57 80,47 8.789 398.606 124,18 0,00 8.789 428.166 31,66 0,00 8.789 435.844 25,93 0,00 8.789 447.639 34,32 0,00 8.789 462.137 -43,64 43,64 8.789 475.613 -110,39 154,03 8.789 485.022 92,29 61,74 8.789 495.807 91,67 0,00
Published by: 4ndr34 on January 28, 2010 13:38Hello
4ndr34 wrote:
Thanks, but the model is not available in oracle9 :(Are - that you mentioned before?
It's a good idea to include your version number whenever you ask a question, especially if the version is as old as Oracle 9.Here's an analytical solution that must work at Oracle 9 (and more):
WITH e AS ( SELECT hiredate , CASE WHEN job IN ('PRESIDENT', 'SALESMAN') THEN -sal ELSE sal END AS sal2 , ROW_NUMBER () OVER ( ORDER BY hiredate , empno ) AS rnum FROM scott.emp ) , got_grp_start AS ( SELECT h.* , CASE WHEN sal2 >= 0 THEN 0 WHEN EXISTS ( SELECT NULL FROM e l JOIN e m ON m.rnum >= l.rnum WHERE l.rnum < h.rnum + 0 -- See note below AND m.rnum < h.rnum + 0 -- See note below GROUP BY l.rnum HAVING SUM (m.sal2) < 0 ) THEN 0 ELSE 1 END AS grp_start FROM e h ) , got_grp AS ( SELECT got_grp_start.* , SUM (grp_start) OVER (ORDER BY rnum) AS grp FROM got_grp_start ) SELECT hiredate , sal2 , GREATEST ( SUM (-sal2) OVER ( PARTITION BY grp ORDER BY rnum ) , 0 ) AS credit FROM got_grp ORDER BY rnum ;
The EXISTS subquery in got_grp_start does not work (at least in Oracle 10.2.0.3.0 or 11.1.0.6.0) if it refers to "h.rnum", but it does if it refers to "h.rnum + 0" or "h.rnum - 0". ".
The sole purpose of subquery e is to produce a useful set of raw data, including a simple expression (rnum) that can be used in sorting. You probably have something like e, according to your actual table.
If you need a separate calculation for, say, all the departments, and then add PARTITION BY analytical clauses.
Hide a field value based on the value of the previous row
I need to read the string before the underscore (_) and show that the value in the 1st row for the field of Value1. For example, if the previous string (ABCDE) is equal to that of the second line I need to hide the value (100) on the field of the value1.
Sample data:
Report ID Val1 Val2 Val3 ABCDE_01 100 200 300 ABCDE_02 100 250 350 XYZ 500 60 28 Final results:
Report ID Value1 Value2 Value3 ABCDE_01 100 200 300 ABCDE_02 250 350 XYZ 500 60 28 I am using code below but error.
<? If: xdoxslt:get_variable($_XDOCTX,_'x')! = substr (REPORT_ID, 0, instr(REPORT_ID, '_', 0) - 1)? >
<? Value1? >
<? end if? >
<? xdoxslt:set_variable ($_XDOCTX, 'x', substr (REPORT_ID, 0, (instr(REPORT_ID, '_', 0)-1)))? >
You can use this condition instead:
It will manage both of your cases.
Maybe you are looking for
-
Questions about a Windows updates
I can renovate permeable day without dameging my computer? I want to know b\c I want to free up space on my HARD drive. Also can I remove .net Framework 1.1 and .net Framework 1.1 hotfix and kept the Framework .net 2.0 without damage?
-
Pavilion g4: can not hear the sound of my laptop
I can't hear from the laptop. When I try to test the sound he says not to test tone. I think I got g4, but I know it's the Pavilion g series
-
WAG120N wireless bridge with E1500
I have my internet to come into my WAG120N and out wireless. I want to install a wireless bridge between this and an E1500, so I can connect my TV to the E1500 (via ethernet cable) and have access to the internet. Unfortunately, I can run a cable fro
-
Reinstalled Vista Ultimate Upgrade disc, how can I do a full version licensed facility?
I bought a Vista Ultimate upgrade version to upgrade my Vista Home 32-bit system. I wanted to update and it would be so 64 bits that takes care of my system. My HARD drive crashed and I had to reinstall from the Vista Ultimate Upgrade disk that I hav
-
All in ALL AutoFormat in multiple items.
Is it possible for the automatic formatting currency on direct in the form elements.Tried to use the point Format mask, it won't fly. Found this article and unable to implement in 4.2.http://jeffkemponoracle.com/2014/08/25/AutoFormat-any-amount-item-