-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab stops are put in column 1 ignoring the selection (e.g. j=3:8) #635
Comments
Is it possible to set the tab stops for a selection of columns? When I tried doing separate assignments, an error was returned:
And it seems that tab stops are set indeed for the entire table, it ignores the column selection. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @davidgohel
First of all, thank you wholeheartedly for bringing decimal (and other) tabulation marks into flextable. It is totally a game changer!
And it works perfectly.
Only I noticed one thing. I formatted a table, where the 2 first columns described the content, and the remaining columns held the numeric content.
In the 1st column I prepended the content with "\t" to mimic a nested hierarchy of items. That's very common in my field.
I didn't need any specific positions of tab stops here. Just plain, simple tabs. So I explicitly told flextable to put tab stops only in concrete cells: at the cross of i=1:nrow(data) and j=3:8.
Yet the tab stops were put in the first column too, which spoiled the hierarchy.
![obraz](https://private-user-images.githubusercontent.com/95669100/334164342-f0d45885-75c3-4146-9ac3-371f24b074f8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3NzI5NzIsIm5iZiI6MTcyMTc3MjY3MiwicGF0aCI6Ii85NTY2OTEwMC8zMzQxNjQzNDItZjBkNDU4ODUtNzVjMy00MTQ2LTlhYzMtMzcxZjI0YjA3NGY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIzVDIyMTExMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5OTZhMzEwMTUzZTIyNzg2NGNjNDA5NzgxMGU1YmI3MjgwNmUwZjVjNzZjNWI2NDE5ZmU0MDllM2M4M2JiODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.grZYxIZMP_xv9okRCbdxVxd6jSaycSpGPjx4tOAnWYk)
Luckily it was enough to select the 1 column and delete the tab stops with a mouse to fix it.
Maybe this issue was caused by the fact that I merged cells in the the 1 row to make a vertical sub-header?
The text was updated successfully, but these errors were encountered: