I'm using the headings to create sections in an outline format. I've created a large document, but now realized that one section actually needs to be nested in new section. How do I "indent" the whole section by incrementing heading level for all markdown cells within a section? Is there a way to do the reverse as well?
For example, the outline looks like this:
Section 1
Topic A
Topic B
I want to turn it into this:
Section 1
Topic C
Topic A
Topic B
Without having to do a tedious and unreliable find/replace, etc. on the whole document when there are many sections and many layers of nesting
Related
I am creating a textbook in bookdown and I would like to use a five level header to mark the homework problems. I am using a 5 level header (##### Header Name) because it is the next level header that has not been used yet. What is happening when I write the code is it appears with “1.2.0.0.1 Homework Question”. I would like it to look like “1.1 Homework Question”, but I have not found a way to change the five level header using css style changes. I would like the first number to be associated with the chapter and the second number to be associated with the homework question number. I wish I could upload a picture of the problem, but I am unable to do so.
I have tried using a counter to change the five level header in the css file. I have been able to change the color and the size, just not what appears with the numbering.
I am fairly new to using PeopleSoft BI Publisher plugin for MS Word and integrating it with PS Query Manager. My question is whether in the RTF file you can put logic to suppress or filter out data?
I have a for-each grouping that prints a line (row). I would like to add logic to NOT print the line if the Witholding amount field (M.WTHD_AMT) is equal to 0 (zero). My question is what would the syntax look like, and where should I place it (on the For Each grouping below, the Field level, or somewhere else?) I know I can alter the PS Query (data source) to do the filtering but I would like to leave that as-is and handle this in the template.
I see that there is another conditional IF statement ("rmt_") so I'm not sure if I can add this additional logic to that element or if I need a separate one. I appreciate any feedback!
EDIT:
I've added a new "Conditional Region" as suggested, and it works with just the WTHD_AMT criteria !0 to zero, however I tried added additional criteria where L.PYMNT_TYPE = 'R' and when I run the process it doesn't display data on the PDF output. Is there something wrong with the syntax? Do I need to have a separate Conditional Region for this 2nd criteria? I've seen another BI report where they have 2 or 3 criteria as part of one element.
<?if:number(M.WTHD_AMT)!=0.00?> and <?if:L.PYMNT_TYPE='R'?>
Option 1
You can nest <?if?> statements. Just add another <?end if?> at the end. Make sure there are no spaces between the all of the IF or END IF objects at the beginning or end of the content/row, else the row may still be displayed.
Option 2
You can add conditions in the repeating section. Below will repeat the region for every record where M.WTHD_AMT is not 0.00
<?for-each:record_path/record[M.WTHD_AMT!='0.00']?>
'Conditional Region' is the button you are looking for.
When using this button, make sure to double check where the if/endif or C/EC elements are added. It tends to ignore the selected element and join the elements to the start and end of the line. You will then need to cut and paste it into the right spot. For you this will probably be right after the F element and before the E element.
I have around 1140 terms in three documents (after removing sparse terms). I want to have the information about the clusters. I have produced clusters as shown in attached image but I am unable to read them. I have also tried k-mean clusters but the same problem persists. I am not so much interested in all the terms but clearly defined few three or four clusters would do the job. I have been using tm package in R for text mining.
Secondly I am also looking for finding association in terms with in a single document; for this how can I split a text file into several text files i.e. if my file has three sentences:
Doc: "My name is ABC. I live in XYZ. I am cousin of TUV."
I would like to split it as:
Doc_1: My name is ABC.
Doc_2:I live in XYZ.
Doc_3: I am cousin of TUV.
So that I have three rows and columns of terms in dtm instead of a single row and column of terms.
and
You ask more than one question. I will address your first one. It seems unrealistic to expect to put 1140 strings in your graph and expect to see anything. You need a way to be able to see a bit of it at a time. You can cut the tree and look a smaller pieces in the lower part of the tree to control how much you are seeing at one time.
Here is an example. Even with 150 points, it is hard to see what is going on.
D = as.dendrogram(hclust(dist(iris[,1:4])))
plot(D)
But if you cut the tree, you can look at individual lower branches and understand that part.
Cuts = cut(D, 4)
plot(Cuts$lower[[2]])
Of course, you will need to experiment around a bit to find good places to cut your tree.
I'm creating a tool to automatically generate reports for people in the office using the ReporteRs package in R. We have a standard set of tables/graphs, but the number of times a single table or graph may appear will vary from person to person. Due to this, I cannot make a single template with a fixed number of bookmarks.
I was hoping to get around this by having a bookmark on the first figure title and then repeatedly adding figure titles and graphs/tables underneath that one bookmark.
The 'addParagraph' function will only replace the bookmarked paragraph, so it will not work. I also tried replacing the bookmarked paragraph with a set of paragraphs, but since I have to alternate text/tables the bookmark gets placed onto two paragraphs after the first iteration and does not work after that.
Is there any way to simply add a piece of text after a bookmarked paragraph?
No that's not possible with ReporteRs. Maybe you could use package officer instead, cursor_* functions would help you.
I've been working in RMarkdown to make some slide sets, and have discovered odd behavior with respect to nested lists and mixing of list types. The following short presentation only works for slide 2. Nested lists are no longer nested and mixing incremental ordered and unordered lists fails entirely. I've tried this with a few different presentation formats, and it actually fails differently for different output types, which was surprising.
Thoughts?
---
title: "Attempt"
output: revealjs::revealjs_presentation
---
## Nested Incremental Lists
> * This
> + kinda works (but is not nested)
## Incremental Ordered Lists
> 1. This
> 2. works
## Broken - Nested mixed lists
> 1. This
> + Does not work
Try inserting four leading spaces. From the documentation (emphasis mine):
The four-space rule
A list item may contain multiple paragraphs and other block-level content. However, subsequent paragraphs must be preceded by a blank line and indented four spaces or a tab. The list will look better if the first paragraph is aligned with the rest:
The inconsistency to do with number of tabs may be due to how many spaces are inserted by default by Rstudio.
Worked when I gave 2 tabs, so:
1. This
<tab><tab>+ Should work
I was having the same problem and found a solution that worked. When making nested lists without incremental reveal, you need to add four spaces for sub-bullets. When making lists with incremental reveal, you need to add one space after >. So, when making sub-bullets with incremental reveal, you need five spaces between > and - (one for the incremental syntax, and four for the nested list syntax).
So, a regular list with incremental reveal would look like this:
><space>- Point 1
><space>- Point 2
If you want to add sub-bullets, this will not work:
><space>- Point 1
><space><space><space><space>- Sub-bullet
><space>- Point 2
But this will work:
><space>- Point 1
><space><space><space><space><space>- Sub-bullet
><space>- Point 2
Hope this is helpful/readable!
As #Alex mentioned you have to give it 4 spaces. If you don't want to worry about this in the future you can set the tab preset to be 4 spaces. the solution will be
*something
<space><space><space><space>+ Other thing