I am formating a paper in statsoc style. I inserted a table. But it moves to the top of the page even though it should be placed in the middle of the page after some text.
I tried using float package with table options [H],[H!], [h]. But that results in printing [H] (or whatever the option i type) before caption like this:
[H] Table 1: table_caption
Please help. Really appreciate it.
Within the statsoc.cls, you need to change def\fps#table{tbp} to \def\fps#table{htbp}.
Related
I'm trying to create my project report which needs me to write in a two column style on each page. I have a table on the last page whose width is a lot more than half the page width so I want to allow it to extend to the full page width. However, Latex overwrites on the extended part.
I tried a few things like using \begin{table*} instead of \begin{table} - but that makes the table go to the next page. (I don't like this because it's the last page of my report)
I also tried \includegraphics[width=0.8\linewidth], but that causes a compilation error.
Any ideas on this. Stuck for a while now.
I am not sure if I completely understand your problem. IMO, you have a documentclass that defines that your text is going to be in two columns format, something like this:
\documentclass[a4paper, 11pt, twocolumn]{report}
You have a bunch of text that is your report, in this two-column format and you need to insert a table that will only use one-column format. For me, that is achieved by adding the \onecolumn command before the \begin{table} command.
When you finish with the table, you can use the \twocolumn command to return to your previous format.
However, using this approach I am giving you, it will move the table to the top of the next page, since AFAIK you cannot have \onecolumn and \twocolumn on the same page in Latex.
You can also use the float package to allow you to place the table where you want it with the h option in the table; something like this: `\begin{table}[ht]. However, this will not override what I wrote above, it will still begin in the next page if you are changing the columns' style.
For big tables, I know there is a package for working with them. I have not used it myself, but give it a try. Take a look at this post: https://tex.stackexchange.com/questions/136212/how-to-use-longtable-package.
I have an XtraReport that overflows text on to the next page but occasionally cuts the last line of text from the first page in half when it does.
I would normally handle this with the height property of the text area but I am unsure how to target a specific table row of an XtraReport to work out what the remaining height of the page is to achieve this or whether that would even work in this instance.
I'm rather hoping there's a simple work around to achieve this, please don't go too much out of your way to help out as I won't be investing much development on this.
I don't think there are any settings I have missed within the designer, perhaps there's a golden font size or line height that the reports want to overflow correctly.
Any help or direction would be greatly appreciated, thank you.
If there is no simple way, I will just have to loop through the tr / td tags and see if by manipulating the height I can find that sweet spot, i just worry that it will hide page 1 but still be split on page 2.
It seems to me that you use the ASPx/MVCx -DocumentViewer,
this control shows you a html content which is not suitable for pixel-perfect documents.
I recommend you to try the ASPx/MVCx WebDocumentViewer which is like the the Google Docs shows pixel-perfect document and more convenient with bootstrap and other progressive web frameworks.
here are demo and docs.
I want to create a multi lined edit text that can hold buttons but also have the ability to add free form text.
It should behave like the tag text box of stackoverflow that is under the body of the question when you ask a question on stackoverflow.
I thought about one layout that holds buttons (e.g. tags) and an edit text right after said layout. But as I want it to be multi-lined and if there was a line break, I'm not sure how the edit text should behave, since it couldn't be a quadratic box anymore.
Can you point me in the right direction? I've seen a post about making parts of an edittext uneditable. I could do this and put buttons over it, but the buttons might be a little bigger than the underlying text.
Do you know of alternatives?
I hope you get the point, if not I'll draw the control.
You can achieve same by using FlowLayout. Keep on adding text/button view it will automatically wraps contents to next line
Hey S.O! I realized my child nodes are not being indented - they are on the same level as the root nodes. Here's a screenshot:
As you see, the childnodes are on the first level's Indent. FixedIndent is OFF, so thats not whats causing it..
Any suggestions?
Thanks!
It looks like the check boxes are indented slightly. Keep in mind that the control only indents one column. All other columns are treated like ordinary table columns. Set the Header.MainColumn property to 1 if you want the "Full Name" column to be the one showing indented items. Then set the Indent property.
You can also handle the OnBeforeCellPaint event. Adjust the dimensions of the ContentRect parameter.
I'm looking to create a look similar to the image below (which I know was done using TVirtualStringTree), but I haven't found any example code on how to accomplish this.
Anyone knows how I can have multi-line items like on the example below, and "expand" the select item to show more lines?
Please take a look at VT Demos\Advenced. In there you have a Multiline nodes demo which I guess might be the thing you are looking for.
Demos can be found here
Edit: The download page is here and the third item is the demos.
I guess you've got an answer, but I'll give you a couple hints for putting this into practice because it's been a little wonky for me. (At least in Delphi 7)
If you do a #13#10 for a new line make sure you've got a space after the the #10, otherwise you will not get a line break.
VirtualTree.MultiLine[node] := true will allow multi line, but not necessarily make it multiline.
Do VirtualTree.InvalidateNode(Node) then VirtualTree.Refresh the tree to get the new size for the node after you've changed the caption.